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.
|
The guild's notification settings.
|
||||||
features: List[:class:`str`]
|
features: List[:class:`str`]
|
||||||
A list of features that the guild has. The features that a guild can have are
|
A list of features that the guild has. The features that a guild can have are
|
||||||
subject to arbitrary change by Discord.
|
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>`.
|
||||||
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.
|
|
||||||
|
|
||||||
premium_tier: :class:`int`
|
premium_tier: :class:`int`
|
||||||
The premium tier for this guild. Corresponds to "Nitro Server" in the official UI.
|
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]
|
NSFWLevel = Literal[0, 1, 2, 3]
|
||||||
PremiumTier = Literal[0, 1, 2, 3]
|
PremiumTier = Literal[0, 1, 2, 3]
|
||||||
GuildFeature = Literal[
|
GuildFeature = Literal[
|
||||||
|
'ANIMATED_BANNER',
|
||||||
'ANIMATED_ICON',
|
'ANIMATED_ICON',
|
||||||
|
'APPLICATION_COMMAND_PERMISSIONS_V2',
|
||||||
|
'AUTO_MODERATION',
|
||||||
'BANNER',
|
'BANNER',
|
||||||
'COMMERCE',
|
|
||||||
'COMMUNITY',
|
'COMMUNITY',
|
||||||
|
'CREATOR_MONETIZABLE_PROVISIONAL',
|
||||||
|
'CREATOR_STORE_PAGE',
|
||||||
|
'DEVELOPER_SUPPORT_SERVER',
|
||||||
'DISCOVERABLE',
|
'DISCOVERABLE',
|
||||||
'FEATURABLE',
|
'FEATURABLE',
|
||||||
'INVITE_SPLASH',
|
'INVITE_SPLASH',
|
||||||
|
'INVITES_DISABLED',
|
||||||
'MEMBER_VERIFICATION_GATE_ENABLED',
|
'MEMBER_VERIFICATION_GATE_ENABLED',
|
||||||
'MONETIZATION_ENABLED',
|
'MONETIZATION_ENABLED',
|
||||||
'MORE_EMOJI',
|
'MORE_EMOJI',
|
||||||
@ -70,14 +76,14 @@ GuildFeature = Literal[
|
|||||||
'NEWS',
|
'NEWS',
|
||||||
'PARTNERED',
|
'PARTNERED',
|
||||||
'PREVIEW_ENABLED',
|
'PREVIEW_ENABLED',
|
||||||
'PRIVATE_THREADS',
|
|
||||||
'ROLE_ICONS',
|
'ROLE_ICONS',
|
||||||
|
'ROLE_SUBSCRIPTIONS_AVAILABLE_FOR_PURCHASE',
|
||||||
|
'ROLE_SUBSCRIPTIONS_ENABLED',
|
||||||
'TICKETED_EVENTS_ENABLED',
|
'TICKETED_EVENTS_ENABLED',
|
||||||
'VANITY_URL',
|
'VANITY_URL',
|
||||||
'VERIFIED',
|
'VERIFIED',
|
||||||
'VIP_REGIONS',
|
'VIP_REGIONS',
|
||||||
'WELCOME_SCREEN_ENABLED',
|
'WELCOME_SCREEN_ENABLED',
|
||||||
'INVITES_DISABLED',
|
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user