Skip to content

Commit ac4d2c1

Browse files
NeloBlivionBobDotComLulalaby
authored
chore: Update Guild.features docs and literal (#1788)
Co-authored-by: BobDotCom <[email protected]> Co-authored-by: Lala Sabathil <[email protected]>
1 parent 40fbdbf commit ac4d2c1

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ These changes are available on the `master` branch, but have not yet been releas
2828
([#1636](https://github.com/Pycord-Development/pycord/pull/1636))
2929
- Added `bridge_commands` attribute to `ext.bridge.Bot` for access to bridge command
3030
objects. ([#1787](https://github.com/Pycord-Development/pycord/pull/1787))
31+
- Updated `Guild.features` to include new and previously missing features.
32+
([#1788](https://github.com/Pycord-Development/pycord/pull/1788))
3133

3234
### Fixed
3335

discord/guild.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,17 +208,20 @@ class Guild(Hashable):
208208
209209
- ``ANIMATED_BANNER``: Guild can upload an animated banner.
210210
- ``ANIMATED_ICON``: Guild can upload an animated icon.
211+
- ``APPLICATION_COMMAND_PERMISSIONS_V2``: Guild is using the old command permissions behavior.
211212
- ``AUTO_MODERATION``: Guild has enabled the auto moderation system.
212213
- ``BANNER``: Guild can upload and use a banner. (i.e. :attr:`.banner`)
213214
- ``CHANNEL_BANNER``: Guild can upload and use a channel banners.
214215
- ``COMMERCE``: Guild can sell things using store channels, which have now been removed.
215216
- ``COMMUNITY``: Guild is a community server.
217+
- ``DEVELOPER_SUPPORT_SERVER``: Guild has been set as a support server on the App Directory.
216218
- ``DISCOVERABLE``: Guild shows up in Server Discovery.
219+
- ``FEATURABLE``: Guild can be featured in the Server Directory.
217220
- ``HAS_DIRECTORY_ENTRY``: Unknown.
218221
- ``HUB``: Hubs contain a directory channel that let you find school-related, student-run servers for your school or university.
219222
- ``INTERNAL_EMPLOYEE_ONLY``: Indicates that only users with the staff badge can join the guild.
220-
- ``INVITE_SPLASH``: Guild's invite page can have a special splash.
221223
- ``INVITES_DISABLED``: Guild Invites are disabled.
224+
- ``INVITE_SPLASH``: Guild's invite page can have a special splash.
222225
- ``LINKED_TO_HUB``: 'Guild is linked to a hub.
223226
- ``MEMBER_PROFILES``: Unknown.
224227
- ``MEMBER_VERIFICATION_GATE_ENABLED``: Guild has Membership Screening enabled.
@@ -233,8 +236,10 @@ class Guild(Hashable):
233236
- ``ROLE_ICONS``: Guild can set an image or emoji as a role icon.
234237
- ``ROLE_SUBSCRIPTIONS_AVAILABLE_FOR_PURCHASE``: Role subscriptions are available for purchasing.
235238
- ``ROLE_SUBSCRIPTIONS_ENABLED``: Guild is able to view and manage role subscriptions.
239+
- ``SEVEN_DAY_THREAD_ARCHIVE``: Users can set the thread archive time to 7 days.
236240
- ``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.
237241
- ``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.
242+
- ``THREE_DAY_THREAD_ARCHIVE``: Users can set the thread archive time to 3 days.
238243
- ``TICKETED_EVENTS_ENABLED``: Guild has enabled ticketed events.
239244
- ``VANITY_URL``: Guild can have a vanity invite URL (e.g. discord.gg/discord-api).
240245
- ``VERIFIED``: Guild is a verified server.

discord/types/guild.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,14 +59,19 @@ class UnavailableGuild(TypedDict):
5959
GuildFeature = Literal[
6060
"ANIMATED_BANNER",
6161
"ANIMATED_ICON",
62+
"APPLICATION_COMMAND_PERMISSIONS_V2",
6263
"AUTO_MODERATION",
6364
"BANNER",
65+
"CHANNEL_BANNER",
6466
"COMMERCE",
6567
"COMMUNITY",
68+
"DEVELOPER_SUPPORT_SERVER",
6669
"DISCOVERABLE",
6770
"FEATURABLE",
6871
"HAS_DIRECTORY_ENTRY",
6972
"HUB",
73+
"INTERNAL_EMPLOYEE_ONLY",
74+
"INVITES_DISABLED",
7075
"INVITE_SPLASH",
7176
"LINKED_TO_HUB",
7277
"MEMBER_PROFILES",

0 commit comments

Comments
 (0)