aboutsummaryrefslogtreecommitdiff
path: root/discord/integrations.py
diff options
context:
space:
mode:
authorXua <[email protected]>2020-08-05 21:48:42 +1200
committerGitHub <[email protected]>2020-08-05 05:48:42 -0400
commita1d6ff82dd5b6d1788c0f3bf9ad0643e0f516d16 (patch)
tree752ca689a76bfe22ae6354b11d70e16bd68f43d1 /discord/integrations.py
parentRequire people to use templates when making an issue (diff)
downloaddiscord.py-a1d6ff82dd5b6d1788c0f3bf9ad0643e0f516d16.tar.xz
discord.py-a1d6ff82dd5b6d1788c0f3bf9ad0643e0f516d16.zip
Fix NameError and AttributeError in Template and Integrations
Diffstat (limited to 'discord/integrations.py')
-rw-r--r--discord/integrations.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/discord/integrations.py b/discord/integrations.py
index b7dd4399..91b39d0d 100644
--- a/discord/integrations.py
+++ b/discord/integrations.py
@@ -86,7 +86,8 @@ class Integration:
__slots__ = ('id', '_state', 'guild', 'name', 'enabled', 'type',
'syncing', 'role', 'expire_behaviour', 'expire_behavior',
- 'expire_grace_period', 'synced_at', 'user', 'account')
+ 'expire_grace_period', 'synced_at', 'user', 'account',
+ 'enable_emoticons', '_role_id')
def __init__(self, *, data, guild):
self.guild = guild
@@ -161,7 +162,7 @@ class Integration:
await self._state.http.edit_integration(self.guild.id, self.id, **payload)
- self.expire_behaviour = expire_behavior
+ self.expire_behaviour = expire_behaviour
self.expire_behavior = self.expire_behaviour
self.expire_grace_period = expire_grace_period
self.enable_emoticons = enable_emoticons