diff options
| author | io mintz <[email protected]> | 2020-05-11 22:06:09 +0000 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2020-05-29 23:19:36 -0400 |
| commit | b15571455fe7afaea4ad5ffa836087c66bc9ee11 (patch) | |
| tree | 00e19bca65a981503a698eb394bdcd722763c5d4 | |
| parent | Add support for public user flags (diff) | |
| download | discord.py-b15571455fe7afaea4ad5ffa836087c66bc9ee11.tar.xz discord.py-b15571455fe7afaea4ad5ffa836087c66bc9ee11.zip | |
implement AllowedMentions.__repr__
| -rw-r--r-- | discord/mentions.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/discord/mentions.py b/discord/mentions.py index 70aa8d44..21e8beee 100644 --- a/discord/mentions.py +++ b/discord/mentions.py @@ -96,3 +96,6 @@ class AllowedMentions: users = self.users if other.users is default else other.users roles = self.roles if other.roles is default else other.roles return AllowedMentions(everyone=everyone, roles=roles, users=users) + + def __repr__(self): + return '{0.__class__.__qualname__}(everyone={0.everyone}, users={0.users}, roles={0.roles})'.format(self) |