Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Update Guild.features docs and literal #1788

Merged
merged 5 commits into from
Nov 22, 2022
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 6 additions & 1 deletion discord/guild.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,17 +208,20 @@ class Guild(Hashable):

- ``ANIMATED_BANNER``: Guild can upload an animated banner.
- ``ANIMATED_ICON``: Guild can upload an animated icon.
- ``APPLICATION_COMMAND_PERMISSIONS_V2``: Guild is using the old command permissions behavior.
- ``AUTO_MODERATION``: Guild has enabled the auto moderation system.
- ``BANNER``: Guild can upload and use a banner. (i.e. :attr:`.banner`)
- ``CHANNEL_BANNER``: Guild can upload and use a channel banners.
- ``COMMERCE``: Guild can sell things using store channels, which have now been removed.
- ``COMMUNITY``: Guild is a community server.
- ``DEVELOPER_SUPPORT_SERVER``: Guild has been set as a support server on the App Directory.
- ``DISCOVERABLE``: Guild shows up in Server Discovery.
- ``FEATURABLE``: Guild can be featured in the Server Directory.
- ``HAS_DIRECTORY_ENTRY``: Unknown.
- ``HUB``: Hubs contain a directory channel that let you find school-related, student-run servers for your school or university.
- ``INTERNAL_EMPLOYEE_ONLY``: Indicates that only users with the staff badge can join the guild.
- ``INVITE_SPLASH``: Guild's invite page can have a special splash.
- ``INVITES_DISABLED``: Guild Invites are disabled.
- ``INVITE_SPLASH``: Guild's invite page can have a special splash.
- ``LINKED_TO_HUB``: 'Guild is linked to a hub.
- ``MEMBER_PROFILES``: Unknown.
- ``MEMBER_VERIFICATION_GATE_ENABLED``: Guild has Membership Screening enabled.
Expand All @@ -234,8 +237,10 @@ class Guild(Hashable):
- ``ROLE_ICONS``: Guild can set an image or emoji as a role icon.
- ``ROLE_SUBSCRIPTIONS_AVAILABLE_FOR_PURCHASE``: Role subscriptions are available for purchasing.
- ``ROLE_SUBSCRIPTIONS_ENABLED``: Guild is able to view and manage role subscriptions.
- ``SEVEN_DAY_THREAD_ARCHIVE``: Users can set the thread archive time to 7 days.
- ``TEXT_IN_VOICE_ENABLED``: Guild has a chat button inside voice channels that opens a dedicated text channel in a sidebar similar to thread view.
- ``THREADS_ENABLED_TESTING``: Used by bot developers to test their bots with threads in guilds with 5 or fewer members and a bot. Also gives the premium thread features.
- ``THREE_DAY_THREAD_ARCHIVE``: Users can set the thread archive time to 3 days.
- ``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.
Expand Down
5 changes: 5 additions & 0 deletions discord/types/guild.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,19 @@ class UnavailableGuild(TypedDict):
GuildFeature = Literal[
"ANIMATED_BANNER",
"ANIMATED_ICON",
"APPLICATION_COMMAND_PERMISSIONS_V2",
"AUTO_MODERATION",
"BANNER",
"CHANNEL_BANNER",
"COMMERCE",
"COMMUNITY",
"DEVELOPER_SUPPORT_SERVER",
"DISCOVERABLE",
"FEATURABLE",
"HAS_DIRECTORY_ENTRY",
"HUB",
"INTERNAL_EMPLOYEE_ONLY",
"INVITES_DISABLED",
"INVITE_SPLASH",
"LINKED_TO_HUB",
"MEMBER_PROFILES",
Expand Down