diff options
| author | Rapptz <[email protected]> | 2017-09-26 22:56:26 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2017-09-26 22:56:26 -0400 |
| commit | 6d6ce14d7cc1f058aedc48fd9e2d28fd3964b1bb (patch) | |
| tree | 0bc22689ee922f01c593a0e990ed1df3ca703e38 | |
| parent | Don't use Bulk Channel Edit endpoint if not actually moving channels. (diff) | |
| download | discord.py-6d6ce14d7cc1f058aedc48fd9e2d28fd3964b1bb.tar.xz discord.py-6d6ce14d7cc1f058aedc48fd9e2d28fd3964b1bb.zip | |
Fix Guild.system_channel always returning None.
Fixes #811
| -rw-r--r-- | discord/guild.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/guild.py b/discord/guild.py index e241531f..9609dade 100644 --- a/discord/guild.py +++ b/discord/guild.py @@ -217,7 +217,7 @@ class Guild(Hashable): self.emojis = tuple(map(lambda d: self._state.store_emoji(self, d), guild.get('emojis', []))) self.features = guild.get('features', []) self.splash = guild.get('splash') - self._system_channel_id = guild.get('system_channel_id') + self._system_channel_id = utils._get_as_snowflake(guild, 'system_channel_id') for mdata in guild.get('members', []): member = Member(data=mdata, guild=self, state=self._state) |