mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-05-10 07:49:48 +00:00
Synchronise Guild.features type hints with newest entries
This commit is contained in:
parent
4d8ded95fb
commit
e802a87916
@ -220,33 +220,8 @@ class Guild(Hashable):
|
||||
The guild's notification settings.
|
||||
features: List[:class:`str`]
|
||||
A list of features that the guild has. The features that a guild can have are
|
||||
subject to arbitrary change by Discord.
|
||||
|
||||
They are currently as follows:
|
||||
|
||||
- ``ANIMATED_BANNER``: Guild can upload an animated banner.
|
||||
- ``ANIMATED_ICON``: Guild can upload an animated icon.
|
||||
- ``BANNER``: Guild can upload and use a banner. (i.e. :attr:`.banner`)
|
||||
- ``COMMERCE``: Guild can sell things using store channels.
|
||||
- ``COMMUNITY``: Guild is a community server.
|
||||
- ``DISCOVERABLE``: Guild shows up in Server Discovery.
|
||||
- ``FEATURABLE``: Guild is able to be featured in Server Discovery.
|
||||
- ``INVITE_SPLASH``: Guild's invite page can have a special splash.
|
||||
- ``MEMBER_VERIFICATION_GATE_ENABLED``: Guild has Membership Screening enabled.
|
||||
- ``MONETIZATION_ENABLED``: Guild has enabled monetization.
|
||||
- ``MORE_EMOJI``: Guild has increased custom emoji slots.
|
||||
- ``MORE_STICKERS``: Guild has increased custom sticker slots.
|
||||
- ``NEWS``: Guild can create news channels.
|
||||
- ``PARTNERED``: Guild is a partnered server.
|
||||
- ``PREVIEW_ENABLED``: Guild can be viewed before being accepted via Membership Screening.
|
||||
- ``PRIVATE_THREADS``: Guild has access to create private threads.
|
||||
- ``ROLE_ICONS``: Guild is able to set role icons.
|
||||
- ``TICKETED_EVENTS_ENABLED``: Guild has enabled ticketed events.
|
||||
- ``VANITY_URL``: Guild can have a vanity invite URL (e.g. discord.gg/discord-api).
|
||||
- ``VERIFIED``: Guild is a verified server.
|
||||
- ``VIP_REGIONS``: Guild can have 384kbps bitrate in voice channels.
|
||||
- ``WELCOME_SCREEN_ENABLED``: Guild has enabled the welcome screen.
|
||||
- ``INVITES_DISABLED``: Guild has disabled invites.
|
||||
subject to arbitrary change by Discord. A list of guild features can be found
|
||||
in :ddocs:`the Discord documentation <resources/guild#guild-object-guild-features>`.
|
||||
|
||||
premium_tier: :class:`int`
|
||||
The premium tier for this guild. Corresponds to "Nitro Server" in the official UI.
|
||||
|
@ -56,13 +56,19 @@ VerificationLevel = Literal[0, 1, 2, 3, 4]
|
||||
NSFWLevel = Literal[0, 1, 2, 3]
|
||||
PremiumTier = Literal[0, 1, 2, 3]
|
||||
GuildFeature = Literal[
|
||||
'ANIMATED_BANNER',
|
||||
'ANIMATED_ICON',
|
||||
'APPLICATION_COMMAND_PERMISSIONS_V2',
|
||||
'AUTO_MODERATION',
|
||||
'BANNER',
|
||||
'COMMERCE',
|
||||
'COMMUNITY',
|
||||
'CREATOR_MONETIZABLE_PROVISIONAL',
|
||||
'CREATOR_STORE_PAGE',
|
||||
'DEVELOPER_SUPPORT_SERVER',
|
||||
'DISCOVERABLE',
|
||||
'FEATURABLE',
|
||||
'INVITE_SPLASH',
|
||||
'INVITES_DISABLED',
|
||||
'MEMBER_VERIFICATION_GATE_ENABLED',
|
||||
'MONETIZATION_ENABLED',
|
||||
'MORE_EMOJI',
|
||||
@ -70,14 +76,14 @@ GuildFeature = Literal[
|
||||
'NEWS',
|
||||
'PARTNERED',
|
||||
'PREVIEW_ENABLED',
|
||||
'PRIVATE_THREADS',
|
||||
'ROLE_ICONS',
|
||||
'ROLE_SUBSCRIPTIONS_AVAILABLE_FOR_PURCHASE',
|
||||
'ROLE_SUBSCRIPTIONS_ENABLED',
|
||||
'TICKETED_EVENTS_ENABLED',
|
||||
'VANITY_URL',
|
||||
'VERIFIED',
|
||||
'VIP_REGIONS',
|
||||
'WELCOME_SCREEN_ENABLED',
|
||||
'INVITES_DISABLED',
|
||||
]
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user