[commands] Document BucketType separately

This commit is contained in:
Rapptz committed 2020-01-18 20:04:00 -05:00
1 parent 97d1c970bf
commit a2b241446e
2 files changed
+34 -10

No files matched your search

+32
View File
@@ -111,6 +111,38 @@ Help Commands
.. autoclass:: discord.ext.commands.Paginator
:members:
Enums
------
.. class:: discord.ext.commands.BucketType
Specifies a type of bucket for, e.g. a cooldown.
.. attribute:: default
The default bucket operates on a global basis.
.. attribute:: user
The user bucket operates on a per-user basis.
.. attribute:: guild
The guild bucket operates on a per-guild basis.
.. attribute:: channel
The channel bucket operates on a per-channel basis.
.. attribute:: member
The member bucket operates on a per-member basis.
.. attribute:: category
The category bucket operates on a per-category basis.
.. attribute:: role
The role bucket operates on a per-role basis.
.. versionadded:: 1.3.0
.. _ext_commands_api_checks:
Checks