mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-09-08 02:43:01 +00:00
Add Role.server attribute.
This breaks events that expected a server parameter for the role events.
This commit is contained in:
@ -264,12 +264,13 @@ to handle it, which defaults to print a traceback and ignore the exception.
|
||||
:param before: The :class:`Server` prior to being updated.
|
||||
:param after: The :class:`Server` after being updated.
|
||||
|
||||
.. function:: on_server_role_create(server, role)
|
||||
on_server_role_delete(server, role)
|
||||
.. function:: on_server_role_create(role)
|
||||
on_server_role_delete(role)
|
||||
|
||||
Called when a :class:`Server` creates or deletes a new :class:`Role`.
|
||||
|
||||
:param server: The :class:`Server` that was created or deleted.
|
||||
To get the server it belongs to, use :attr:`Role.server`.
|
||||
|
||||
:param role: The :class:`Role` that was created or deleted.
|
||||
|
||||
.. function:: on_server_role_update(before, after)
|
||||
|
Reference in New Issue
Block a user