|
|
@ -37,7 +37,7 @@ from .permissions import PermissionOverwrite |
|
|
|
from .colour import Colour |
|
|
|
from .errors import InvalidArgument, ClientException |
|
|
|
from .channel import * |
|
|
|
from .enums import GuildRegion, Status, ChannelType, try_enum, VerificationLevel, ContentFilter |
|
|
|
from .enums import VoiceRegion, Status, ChannelType, try_enum, VerificationLevel, ContentFilter |
|
|
|
from .mixins import Hashable |
|
|
|
from .user import User |
|
|
|
from .invite import Invite |
|
|
@ -72,7 +72,7 @@ class Guild(Hashable): |
|
|
|
A list of :class:`Role` that the guild has available. |
|
|
|
emojis |
|
|
|
A tuple of :class:`Emoji` that the guild owns. |
|
|
|
region: :class:`GuildRegion` |
|
|
|
region: :class:`VoiceRegion` |
|
|
|
The region the guild belongs on. There is a chance that the region |
|
|
|
will be a ``str`` if the value is not recognised by the enumerator. |
|
|
|
afk_timeout: int |
|
|
@ -195,7 +195,7 @@ class Guild(Hashable): |
|
|
|
self._member_count = member_count |
|
|
|
|
|
|
|
self.name = guild.get('name') |
|
|
|
self.region = try_enum(GuildRegion, guild.get('region')) |
|
|
|
self.region = try_enum(VoiceRegion, guild.get('region')) |
|
|
|
self.verification_level = try_enum(VerificationLevel, guild.get('verification_level')) |
|
|
|
self.explicit_content_filter = try_enum(ContentFilter, guild.get('explicit_content_filter', 0)) |
|
|
|
self.afk_timeout = guild.get('afk_timeout') |
|
|
@ -581,7 +581,7 @@ class Guild(Hashable): |
|
|
|
Only PNG/JPEG supported. Could be ``None`` to denote removing the |
|
|
|
splash. Only available for partnered guilds with ``INVITE_SPLASH`` |
|
|
|
feature. |
|
|
|
region: :class:`GuildRegion` |
|
|
|
region: :class:`VoiceRegion` |
|
|
|
The new region for the guild's voice communication. |
|
|
|
afk_channel: :class:`VoiceChannel` |
|
|
|
The new channel that is the AFK channel. Could be ``None`` for no AFK channel. |
|
|
|