diff options
| author | Rapptz <[email protected]> | 2020-04-04 13:03:08 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2020-04-04 13:22:51 -0400 |
| commit | d853a57e8680529da0a4ebbdde703dd23f809065 (patch) | |
| tree | b4e1d37cd31b01f62ddc27593e35adbefdcc981c /discord/state.py | |
| parent | Allow introspection and setting of global allowed mention configuration (diff) | |
| download | discord.py-d853a57e8680529da0a4ebbdde703dd23f809065.tar.xz discord.py-d853a57e8680529da0a4ebbdde703dd23f809065.zip | |
Rename allowed mention parameters to allowed_mentions
Diffstat (limited to 'discord/state.py')
| -rw-r--r-- | discord/state.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/discord/state.py b/discord/state.py index e3ba299c..07282bd7 100644 --- a/discord/state.py +++ b/discord/state.py @@ -79,12 +79,12 @@ class ConnectionState: self._fetch_offline = options.get('fetch_offline_members', True) self.heartbeat_timeout = options.get('heartbeat_timeout', 60.0) self.guild_subscriptions = options.get('guild_subscriptions', True) - mentions = options.get('mentions') + allowed_mentions = options.get('allowed_mentions') - if mentions is not None and not isinstance(mentions, AllowedMentions): - raise TypeError('mentions parameter must be AllowedMentions') + if allowed_mentions is not None and not isinstance(allowed_mentions, AllowedMentions): + raise TypeError('allowed_mentions parameter must be AllowedMentions') - self.mentions = mentions + self.allowed_mentions = allowed_mentions # Only disable cache if both fetch_offline and guild_subscriptions are off. self._cache_members = (self._fetch_offline or self.guild_subscriptions) self._listeners = [] |