mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-06-08 04:38:42 +00:00
on_invite_create requires Manage Channels
Event on_invite_create (and presumably _delete) require Manage Channels permission.
This commit is contained in:
parent
4cf5f792d4
commit
c11dfbca6d
@ -649,6 +649,7 @@ to handle it, which defaults to print a traceback and ignoring the exception.
|
|||||||
.. function:: on_invite_create(invite)
|
.. function:: on_invite_create(invite)
|
||||||
|
|
||||||
Called when an :class:`Invite` is created.
|
Called when an :class:`Invite` is created.
|
||||||
|
You must have the :attr:`~Permissions.manage_channels` permission to receive this.
|
||||||
|
|
||||||
.. versionadded:: 1.3
|
.. versionadded:: 1.3
|
||||||
|
|
||||||
@ -663,6 +664,7 @@ to handle it, which defaults to print a traceback and ignoring the exception.
|
|||||||
.. function:: on_invite_delete(invite)
|
.. function:: on_invite_delete(invite)
|
||||||
|
|
||||||
Called when an :class:`Invite` is deleted.
|
Called when an :class:`Invite` is deleted.
|
||||||
|
You must have the :attr:`~Permissions.manage_channels` permission to receive this.
|
||||||
|
|
||||||
.. versionadded:: 1.3
|
.. versionadded:: 1.3
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user