aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorRapptz <[email protected]>2017-05-23 21:25:16 -0400
committerRapptz <[email protected]>2017-05-23 21:25:16 -0400
commit1f1ac8f75082db8fa07db2e71828491af55efa30 (patch)
tree28e8a4aea3445fc1bf2b5b9851e79fa5336065b4 /docs
parentWorking fix for one of the bullet points. (diff)
downloaddiscord.py-1f1ac8f75082db8fa07db2e71828491af55efa30.tar.xz
discord.py-1f1ac8f75082db8fa07db2e71828491af55efa30.zip
Mention on_member_ban event change.
Diffstat (limited to 'docs')
-rw-r--r--docs/migrating.rst13
1 files changed, 13 insertions, 0 deletions
diff --git a/docs/migrating.rst b/docs/migrating.rst
index 2a2ad72a..f7a6d840 100644
--- a/docs/migrating.rst
+++ b/docs/migrating.rst
@@ -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: