Browse Source
Added vanity_url_code field in class guild
pull/7530/head
AmeyWale
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
6 additions and
0 deletions
-
discord/guild.py
|
|
@ -204,6 +204,10 @@ class Guild(Hashable): |
|
|
|
The guild's description. |
|
|
|
verification_level: :class:`VerificationLevel` |
|
|
|
The guild's verification level. |
|
|
|
vanity_url_code: Optional[:class:`str`] |
|
|
|
The guild's vanity url code, if any |
|
|
|
|
|
|
|
.. versionadded:: 2.0 |
|
|
|
explicit_content_filter: :class:`ContentFilter` |
|
|
|
The guild's explicit content filter. |
|
|
|
default_notifications: :class:`NotificationLevel` |
|
|
@ -299,6 +303,7 @@ class Guild(Hashable): |
|
|
|
'preferred_locale', |
|
|
|
'nsfw_level', |
|
|
|
'mfa_level', |
|
|
|
'vanity_url_code', |
|
|
|
'_members', |
|
|
|
'_channels', |
|
|
|
'_icon', |
|
|
@ -479,6 +484,7 @@ class Guild(Hashable): |
|
|
|
self.max_video_channel_users: Optional[int] = guild.get('max_video_channel_users') |
|
|
|
self.premium_tier: int = guild.get('premium_tier', 0) |
|
|
|
self.premium_subscription_count: int = guild.get('premium_subscription_count') or 0 |
|
|
|
self.vanity_url_code: Optional[str] = guild.get('vanity_url_code') |
|
|
|
self._system_channel_flags: int = guild.get('system_channel_flags', 0) |
|
|
|
self.preferred_locale: Locale = try_enum(Locale, guild.get('preferred_locale', 'en-US')) |
|
|
|
self._discovery_splash: Optional[str] = guild.get('discovery_splash') |
|
|
|