Browse Source

Add version information from missing PRs.

pull/2307/head
Rapptz 6 years ago
parent
commit
ceaba01776
  1. 2
      discord/ext/commands/core.py
  2. 3
      discord/raw_models.py

2
discord/ext/commands/core.py

@ -1602,7 +1602,7 @@ def cooldown(rate, per, type=BucketType.default):
- ``BucketType.channel`` for a per-channel basis.
- ``BucketType.member`` for a per-member basis.
- ``BucketType.category`` for a per-category basis.
- ``BucketType.role`` for a per-role basis.
- ``BucketType.role`` for a per-role basis (added in v1.3.0).
If a cooldown is triggered, then :exc:`.CommandOnCooldown` is triggered in
:func:`.on_command_error` and the local error handler.

3
discord/raw_models.py

@ -85,6 +85,9 @@ class RawBulkMessageDeleteEvent(_RawReprMixin):
class RawMessageUpdateEvent(_RawReprMixin):
"""Represents the payload for a :func:`on_raw_message_edit` event.
.. versionchanged:: 1.3.0
The ``channel_id`` attribute was added.
Attributes
-----------
message_id: :class:`int`

Loading…
Cancel
Save