Add support for configuring allowed mentions per message or bot wide.

This commit is contained in:
Rapptz
2020-04-04 07:40:51 -04:00
parent 6c764465c0
commit 041785937e
8 changed files with 152 additions and 7 deletions

View File

@ -142,13 +142,17 @@ class Client:
The total number of shards.
fetch_offline_members: :class:`bool`
Indicates if :func:`.on_ready` should be delayed to fetch all offline
members from the guilds the bot belongs to. If this is ``False``\, then
members from the guilds the client belongs to. If this is ``False``\, then
no offline members are received and :meth:`request_offline_members`
must be used to fetch the offline members of the guild.
status: Optional[:class:`.Status`]
A status to start your presence with upon logging on to Discord.
activity: Optional[:class:`.BaseActivity`]
An activity to start your presence with upon logging on to Discord.
mention: Optional[:class:`AllowedMentions`]
Control how the client handles mentions by default on every message sent.
.. versionadded:: 1.4
heartbeat_timeout: :class:`float`
The maximum numbers of seconds before timing out and restarting the
WebSocket in the case of not receiving a HEARTBEAT_ACK. Useful if