mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-05-13 09:19:48 +00:00
Mention on_member_ban event change.
This commit is contained in:
parent
37288412ed
commit
1f1ac8f750
@ -504,6 +504,19 @@ After: ::
|
||||
|
||||
The first argument is now the :class:`Guild` that the emojis were updated from.
|
||||
|
||||
The :func:`on_member_ban` event has received an argument change as well:
|
||||
|
||||
Before: ::
|
||||
|
||||
async def on_member_ban(member)
|
||||
|
||||
After: ::
|
||||
|
||||
async def on_member_ban(guild, user)
|
||||
|
||||
As part of the change, the event can either receive a :class:`User` or :class:`Member`. To help in the cases that have
|
||||
:class:`User`, the :class:`Guild` is provided as
|
||||
|
||||
The ``on_channel_`` events have received a type level split (see :ref:`migrating_1_0_channel_split`).
|
||||
|
||||
Before:
|
||||
|
Loading…
x
Reference in New Issue
Block a user