mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-09-08 10:53:10 +00:00
Document BanEntry
This commit is contained in:
16
docs/api.rst
16
docs/api.rst
@ -2867,6 +2867,22 @@ Guild
|
||||
.. automethod:: audit_logs
|
||||
:async-for:
|
||||
|
||||
.. class:: BanEntry
|
||||
|
||||
A namedtuple which represents a ban returned from :meth:`~Guild.bans`.
|
||||
|
||||
.. attribute:: reason
|
||||
|
||||
The reason this user was banned.
|
||||
|
||||
:type: Optional[:class:`str`]
|
||||
.. attribute:: user
|
||||
|
||||
The :class:`User` that was banned.
|
||||
|
||||
:type: :class:`User`
|
||||
|
||||
|
||||
Integration
|
||||
~~~~~~~~~~~~
|
||||
|
||||
|
Reference in New Issue
Block a user