Skip to content

Commit

Permalink
chore: Update Guild.features docs and literal (#1788)
Browse files Browse the repository at this point in the history
Co-authored-by: BobDotCom <71356958+BobDotCom@users.noreply.github.com>
Co-authored-by: Lala Sabathil <lala@pycord.dev>
  • Loading branch information
3 people committed Nov 22, 2022
1 parent 40fbdbf commit ac4d2c1
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ These changes are available on the `master` branch, but have not yet been releas
([#1636](https://github.com/Pycord-Development/pycord/pull/1636))
- Added `bridge_commands` attribute to `ext.bridge.Bot` for access to bridge command
objects. ([#1787](https://github.com/Pycord-Development/pycord/pull/1787))
- Updated `Guild.features` to include new and previously missing features.
([#1788](https://github.com/Pycord-Development/pycord/pull/1788))

### Fixed

Expand Down
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 @@ -233,8 +236,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

0 comments on commit ac4d2c1

Please sign in to comment.