diff --git a/discord/guild.py b/discord/guild.py index a882b08..44da476 100644 --- a/discord/guild.py +++ b/discord/guild.py @@ -476,6 +476,7 @@ def _from_data(self, guild: GuildPayload) -> None: ) self.explicit_content_filter: ContentFilter = try_enum(ContentFilter, guild.get('explicit_content_filter', 0)) self.afk_timeout: int = guild.get('afk_timeout', 0) + self._afk_channel_id: Optional[int] = utils._get_as_snowflake(guild, 'afk_channel_id') self._icon: Optional[str] = guild.get('icon') self._banner: Optional[str] = guild.get('banner') self.unavailable: bool = guild.get('unavailable', False)