openapi: 3.1.0 info: title: Discord Interactions Application Commands Guilds API description: The Discord Interactions API enables applications to create and respond to application commands (slash commands), message components, and modals. It supports both Gateway-based and webhook-based interaction handling, allowing bots to build rich, interactive user experiences within Discord. version: '10' contact: name: Discord Support url: https://support-dev.discord.com/hc/en-us email: support@discord.com termsOfService: https://discord.com/developers/docs/policies-and-agreements/developer-terms-of-service servers: - url: https://discord.com/api/v10 description: Discord API v10 security: - BotToken: [] tags: - name: Guilds paths: /guilds: post: operationId: create_guild requestBody: content: application/json: schema: $ref: '#/components/schemas/GuildCreateRequest' required: true responses: '201': description: 201 response for create_guild content: application/json: schema: $ref: '#/components/schemas/GuildResponse' 4XX: $ref: '#/components/responses/ClientErrorResponse' security: - BotToken: [] tags: - Guilds /guilds/{guild_id}/scheduled-events/{guild_scheduled_event_id}/users: parameters: - name: guild_id in: path schema: $ref: '#/components/schemas/SnowflakeType' required: true - name: guild_scheduled_event_id in: path schema: $ref: '#/components/schemas/SnowflakeType' required: true get: operationId: list_guild_scheduled_event_users parameters: - name: with_member in: query schema: type: boolean - name: limit in: query schema: type: integer minimum: 1 maximum: 100 - name: before in: query schema: $ref: '#/components/schemas/SnowflakeType' - name: after in: query schema: $ref: '#/components/schemas/SnowflakeType' responses: '200': description: 200 response for list_guild_scheduled_event_users content: application/json: schema: type: - array - 'null' items: $ref: '#/components/schemas/ScheduledEventUserResponse' 4XX: $ref: '#/components/responses/ClientErrorResponse' security: - BotToken: [] tags: - Guilds /guilds/{guild_id}/auto-moderation/rules/{rule_id}: parameters: - name: guild_id in: path schema: $ref: '#/components/schemas/SnowflakeType' required: true - name: rule_id in: path schema: $ref: '#/components/schemas/SnowflakeType' required: true get: operationId: get_auto_moderation_rule responses: '200': description: 200 response for get_auto_moderation_rule content: application/json: schema: oneOf: - $ref: '#/components/schemas/DefaultKeywordRuleResponse' - $ref: '#/components/schemas/KeywordRuleResponse' - $ref: '#/components/schemas/MLSpamRuleResponse' - $ref: '#/components/schemas/MentionSpamRuleResponse' - $ref: '#/components/schemas/SpamLinkRuleResponse' 4XX: $ref: '#/components/responses/ClientErrorResponse' security: - BotToken: [] tags: - Guilds delete: operationId: delete_auto_moderation_rule responses: '204': description: 204 response for delete_auto_moderation_rule 4XX: $ref: '#/components/responses/ClientErrorResponse' security: - BotToken: [] tags: - Guilds patch: operationId: update_auto_moderation_rule requestBody: content: application/json: schema: anyOf: - $ref: '#/components/schemas/DefaultKeywordListUpsertRequestPartial' - $ref: '#/components/schemas/KeywordUpsertRequestPartial' - $ref: '#/components/schemas/MLSpamUpsertRequestPartial' - $ref: '#/components/schemas/MentionSpamUpsertRequestPartial' x-discord-union: oneOf required: true responses: '200': description: 200 response for update_auto_moderation_rule content: application/json: schema: oneOf: - $ref: '#/components/schemas/DefaultKeywordRuleResponse' - $ref: '#/components/schemas/KeywordRuleResponse' - $ref: '#/components/schemas/MLSpamRuleResponse' - $ref: '#/components/schemas/MentionSpamRuleResponse' - $ref: '#/components/schemas/SpamLinkRuleResponse' 4XX: $ref: '#/components/responses/ClientErrorResponse' security: - BotToken: [] tags: - Guilds /guilds/{guild_id}/auto-moderation/rules: parameters: - name: guild_id in: path schema: $ref: '#/components/schemas/SnowflakeType' required: true get: operationId: list_auto_moderation_rules responses: '200': description: 200 response for list_auto_moderation_rules content: application/json: schema: type: - array - 'null' items: oneOf: - $ref: '#/components/schemas/DefaultKeywordRuleResponse' - $ref: '#/components/schemas/KeywordRuleResponse' - $ref: '#/components/schemas/MLSpamRuleResponse' - $ref: '#/components/schemas/MentionSpamRuleResponse' - $ref: '#/components/schemas/SpamLinkRuleResponse' - type: 'null' 4XX: $ref: '#/components/responses/ClientErrorResponse' security: - BotToken: [] tags: - Guilds post: operationId: create_auto_moderation_rule requestBody: content: application/json: schema: oneOf: - $ref: '#/components/schemas/DefaultKeywordListUpsertRequest' - $ref: '#/components/schemas/KeywordUpsertRequest' - $ref: '#/components/schemas/MLSpamUpsertRequest' - $ref: '#/components/schemas/MentionSpamUpsertRequest' required: true responses: '200': description: 200 response for create_auto_moderation_rule content: application/json: schema: oneOf: - $ref: '#/components/schemas/DefaultKeywordRuleResponse' - $ref: '#/components/schemas/KeywordRuleResponse' - $ref: '#/components/schemas/MLSpamRuleResponse' - $ref: '#/components/schemas/MentionSpamRuleResponse' - $ref: '#/components/schemas/SpamLinkRuleResponse' 4XX: $ref: '#/components/responses/ClientErrorResponse' security: - BotToken: [] tags: - Guilds /guilds/{guild_id}/voice-states/@me: parameters: - name: guild_id in: path schema: $ref: '#/components/schemas/SnowflakeType' required: true patch: operationId: update_self_voice_state requestBody: content: application/json: schema: type: object properties: request_to_speak_timestamp: type: - string - 'null' format: date-time suppress: type: - boolean - 'null' channel_id: oneOf: - type: 'null' - $ref: '#/components/schemas/SnowflakeType' required: true responses: '204': description: 204 response for update_self_voice_state 4XX: $ref: '#/components/responses/ClientErrorResponse' security: - BotToken: [] tags: - Guilds /guilds/{guild_id}/members/search: parameters: - name: guild_id in: path schema: $ref: '#/components/schemas/SnowflakeType' required: true get: operationId: search_guild_members parameters: - name: limit in: query schema: type: integer minimum: 1 maximum: 1000 required: true - name: query in: query schema: type: string minLength: 1 maxLength: 100 required: true responses: '200': description: 200 response for search_guild_members content: application/json: schema: type: array items: $ref: '#/components/schemas/GuildMemberResponse' 4XX: $ref: '#/components/responses/ClientErrorResponse' security: - BotToken: [] tags: - Guilds /guilds/{guild_id}/threads/active: parameters: - name: guild_id in: path schema: $ref: '#/components/schemas/SnowflakeType' required: true get: operationId: get_active_guild_threads responses: '200': description: 200 response for get_active_guild_threads content: application/json: schema: $ref: '#/components/schemas/ThreadsResponse' 4XX: $ref: '#/components/responses/ClientErrorResponse' security: - BotToken: [] tags: - Guilds /guilds/{guild_id}/members/@me: parameters: - name: guild_id in: path schema: $ref: '#/components/schemas/SnowflakeType' required: true patch: operationId: update_my_guild_member requestBody: content: application/json: schema: type: object properties: nick: type: - string - 'null' maxLength: 32 required: true responses: '200': description: 200 response for update_my_guild_member content: application/json: schema: $ref: '#/components/schemas/PrivateGuildMemberResponse' 4XX: $ref: '#/components/responses/ClientErrorResponse' security: - BotToken: [] tags: - Guilds /guilds/{guild_id}/members/{user_id}/roles/{role_id}: parameters: - name: guild_id in: path schema: $ref: '#/components/schemas/SnowflakeType' required: true - name: user_id in: path schema: $ref: '#/components/schemas/SnowflakeType' required: true - name: role_id in: path schema: $ref: '#/components/schemas/SnowflakeType' required: true put: operationId: add_guild_member_role responses: '204': description: 204 response for add_guild_member_role 4XX: $ref: '#/components/responses/ClientErrorResponse' security: - BotToken: [] tags: - Guilds delete: operationId: delete_guild_member_role responses: '204': description: 204 response for delete_guild_member_role 4XX: $ref: '#/components/responses/ClientErrorResponse' security: - BotToken: [] tags: - Guilds /guilds/templates/{code}: parameters: - name: code in: path schema: type: string maxLength: 152133 required: true get: operationId: get_guild_template responses: '200': description: 200 response for get_guild_template content: application/json: schema: $ref: '#/components/schemas/GuildTemplateResponse' 4XX: $ref: '#/components/responses/ClientErrorResponse' security: - {} - BotToken: [] tags: - Guilds post: operationId: create_guild_from_template requestBody: content: application/json: schema: type: object properties: name: type: string minLength: 2 maxLength: 100 icon: type: - string - 'null' contentEncoding: base64 required: - name required: true responses: '201': description: 201 response for create_guild_from_template content: application/json: schema: $ref: '#/components/schemas/GuildResponse' 4XX: $ref: '#/components/responses/ClientErrorResponse' security: - BotToken: [] tags: - Guilds /guilds/{guild_id}/new-member-welcome: parameters: - name: guild_id in: path schema: $ref: '#/components/schemas/SnowflakeType' required: true get: operationId: get_guild_new_member_welcome responses: '200': description: 200 response for get_guild_new_member_welcome content: application/json: schema: $ref: '#/components/schemas/GuildHomeSettingsResponse' '204': description: 204 response for get_guild_new_member_welcome 4XX: $ref: '#/components/responses/ClientErrorResponse' security: - BotToken: [] tags: - Guilds /guilds/{guild_id}/scheduled-events/{guild_scheduled_event_id}: parameters: - name: guild_id in: path schema: $ref: '#/components/schemas/SnowflakeType' required: true - name: guild_scheduled_event_id in: path schema: $ref: '#/components/schemas/SnowflakeType' required: true get: operationId: get_guild_scheduled_event parameters: - name: with_user_count in: query schema: type: boolean responses: '200': description: 200 response for get_guild_scheduled_event content: application/json: schema: oneOf: - $ref: '#/components/schemas/ExternalScheduledEventResponse' - $ref: '#/components/schemas/StageScheduledEventResponse' - $ref: '#/components/schemas/VoiceScheduledEventResponse' 4XX: $ref: '#/components/responses/ClientErrorResponse' security: - BotToken: [] tags: - Guilds delete: operationId: delete_guild_scheduled_event responses: '204': description: 204 response for delete_guild_scheduled_event 4XX: $ref: '#/components/responses/ClientErrorResponse' security: - BotToken: [] tags: - Guilds patch: operationId: update_guild_scheduled_event requestBody: content: application/json: schema: anyOf: - $ref: '#/components/schemas/ExternalScheduledEventPatchRequestPartial' - $ref: '#/components/schemas/StageScheduledEventPatchRequestPartial' - $ref: '#/components/schemas/VoiceScheduledEventPatchRequestPartial' x-discord-union: oneOf required: true responses: '200': description: 200 response for update_guild_scheduled_event content: application/json: schema: oneOf: - $ref: '#/components/schemas/ExternalScheduledEventResponse' - $ref: '#/components/schemas/StageScheduledEventResponse' - $ref: '#/components/schemas/VoiceScheduledEventResponse' 4XX: $ref: '#/components/responses/ClientErrorResponse' security: - BotToken: [] tags: - Guilds /guilds/{guild_id}/scheduled-events: parameters: - name: guild_id in: path schema: $ref: '#/components/schemas/SnowflakeType' required: true get: operationId: list_guild_scheduled_events parameters: - name: with_user_count in: query schema: type: boolean responses: '200': description: 200 response for list_guild_scheduled_events content: application/json: schema: type: - array - 'null' items: oneOf: - $ref: '#/components/schemas/ExternalScheduledEventResponse' - $ref: '#/components/schemas/StageScheduledEventResponse' - $ref: '#/components/schemas/VoiceScheduledEventResponse' 4XX: $ref: '#/components/responses/ClientErrorResponse' security: - BotToken: [] tags: - Guilds post: operationId: create_guild_scheduled_event requestBody: content: application/json: schema: oneOf: - $ref: '#/components/schemas/ExternalScheduledEventCreateRequest' - $ref: '#/components/schemas/StageScheduledEventCreateRequest' - $ref: '#/components/schemas/VoiceScheduledEventCreateRequest' required: true responses: '200': description: 200 response for create_guild_scheduled_event content: application/json: schema: oneOf: - $ref: '#/components/schemas/ExternalScheduledEventResponse' - $ref: '#/components/schemas/StageScheduledEventResponse' - $ref: '#/components/schemas/VoiceScheduledEventResponse' 4XX: $ref: '#/components/responses/ClientErrorResponse' security: - BotToken: [] tags: - Guilds /guilds/{guild_id}/welcome-screen: parameters: - name: guild_id in: path schema: $ref: '#/components/schemas/SnowflakeType' required: true get: operationId: get_guild_welcome_screen responses: '200': description: 200 response for get_guild_welcome_screen content: application/json: schema: $ref: '#/components/schemas/GuildWelcomeScreenResponse' 4XX: $ref: '#/components/responses/ClientErrorResponse' security: - BotToken: [] tags: - Guilds patch: operationId: update_guild_welcome_screen requestBody: content: application/json: schema: $ref: '#/components/schemas/WelcomeScreenPatchRequestPartial' required: true responses: '200': description: 200 response for update_guild_welcome_screen content: application/json: schema: $ref: '#/components/schemas/GuildWelcomeScreenResponse' 4XX: $ref: '#/components/responses/ClientErrorResponse' security: - BotToken: [] tags: - Guilds /guilds/{guild_id}/voice-states/{user_id}: parameters: - name: guild_id in: path schema: $ref: '#/components/schemas/SnowflakeType' required: true - name: user_id in: path schema: $ref: '#/components/schemas/SnowflakeType' required: true patch: operationId: update_voice_state requestBody: content: application/json: schema: type: object properties: suppress: type: - boolean - 'null' channel_id: oneOf: - type: 'null' - $ref: '#/components/schemas/SnowflakeType' required: true responses: '204': description: 204 response for update_voice_state 4XX: $ref: '#/components/responses/ClientErrorResponse' security: - BotToken: [] tags: - Guilds /guilds/{guild_id}/integrations/{integration_id}: parameters: - name: guild_id in: path schema: $ref: '#/components/schemas/SnowflakeType' required: true - name: integration_id in: path schema: $ref: '#/components/schemas/SnowflakeType' required: true delete: operationId: delete_guild_integration responses: '204': description: 204 response for delete_guild_integration 4XX: $ref: '#/components/responses/ClientErrorResponse' security: - BotToken: [] tags: - Guilds /guilds/{guild_id}/integrations: parameters: - name: guild_id in: path schema: $ref: '#/components/schemas/SnowflakeType' required: true get: operationId: list_guild_integrations responses: '200': description: 200 response for list_guild_integrations content: application/json: schema: type: - array - 'null' items: oneOf: - $ref: '#/components/schemas/DiscordIntegrationResponse' - $ref: '#/components/schemas/ExternalConnectionIntegrationResponse' - $ref: '#/components/schemas/GuildSubscriptionIntegrationResponse' 4XX: $ref: '#/components/responses/ClientErrorResponse' security: - BotToken: [] tags: - Guilds /guilds/{guild_id}/widget.json: parameters: - name: guild_id in: path schema: $ref: '#/components/schemas/SnowflakeType' required: true get: operationId: get_guild_widget responses: '200': description: 200 response for get_guild_widget content: application/json: schema: $ref: '#/components/schemas/WidgetResponse' 4XX: $ref: '#/components/responses/ClientErrorResponse' security: - {} - BotToken: [] tags: - Guilds /guilds/{guild_id}/onboarding: parameters: - name: guild_id in: path schema: $ref: '#/components/schemas/SnowflakeType' required: true get: operationId: get_guilds_onboarding responses: '200': description: 200 response for get_guilds_onboarding content: application/json: schema: $ref: '#/components/schemas/UserGuildOnboardingResponse' 4XX: $ref: '#/components/responses/ClientErrorResponse' security: - BotToken: [] tags: - Guilds put: operationId: put_guilds_onboarding requestBody: content: application/json: schema: $ref: '#/components/schemas/UpdateGuildOnboardingRequest' required: true responses: '200': description: 200 response for put_guilds_onboarding content: application/json: schema: $ref: '#/components/schemas/GuildOnboardingResponse' 4XX: $ref: '#/components/responses/ClientErrorResponse' security: - BotToken: [] tags: - Guilds /guilds/{guild_id}/vanity-url: parameters: - name: guild_id in: path schema: $ref: '#/components/schemas/SnowflakeType' required: true get: operationId: get_guild_vanity_url responses: '200': description: 200 response for get_guild_vanity_url content: application/json: schema: $ref: '#/components/schemas/VanityURLResponse' 4XX: $ref: '#/components/responses/ClientErrorResponse' security: - BotToken: [] tags: - Guilds /guilds/{guild_id}/audit-logs: parameters: - name: guild_id in: path schema: $ref: '#/components/schemas/SnowflakeType' required: true get: operationId: list_guild_audit_log_entries parameters: - name: user_id in: query schema: $ref: '#/components/schemas/SnowflakeType' - name: target_id in: query schema: $ref: '#/components/schemas/SnowflakeType' - name: action_type in: query schema: type: integer - name: before in: query schema: $ref: '#/components/schemas/SnowflakeType' - name: after in: query schema: $ref: '#/components/schemas/SnowflakeType' - name: limit in: query schema: type: integer minimum: 1 maximum: 100 responses: '200': description: 200 response for list_guild_audit_log_entries content: application/json: schema: $ref: '#/components/schemas/GuildAuditLogResponse' 4XX: $ref: '#/components/responses/ClientErrorResponse' security: - BotToken: [] tags: - Guilds /guilds/{guild_id}/widget.png: parameters: - name: guild_id in: path schema: $ref: '#/components/schemas/SnowflakeType' required: true get: operationId: get_guild_widget_png parameters: - name: style in: query schema: $ref: '#/components/schemas/WidgetImageStyles' responses: '200': description: 200 response for get_guild_widget_png content: image/png: schema: type: string contentEncoding: binary 4XX: $ref: '#/components/responses/ClientErrorResponse' security: - {} - BotToken: [] tags: - Guilds /guilds/{guild_id}/templates/{code}: parameters: - name: guild_id in: path schema: $ref: '#/components/schemas/SnowflakeType' required: true - name: code in: path schema: type: string maxLength: 152133 required: true put: operationId: sync_guild_template responses: '200': description: 200 response for sync_guild_template content: application/json: schema: $ref: '#/components/schemas/GuildTemplateResponse' 4XX: $ref: '#/components/responses/ClientErrorResponse' security: - BotToken: [] tags: - Guilds delete: operationId: delete_guild_template responses: '200': description: 200 response for delete_guild_template content: application/json: schema: $ref: '#/components/schemas/GuildTemplateResponse' 4XX: $ref: '#/components/responses/ClientErrorResponse' security: - BotToken: [] tags: - Guilds patch: operationId: update_guild_template requestBody: content: application/json: schema: type: object properties: name: type: string minLength: 1 maxLength: 100 description: type: - string - 'null' maxLength: 120 required: true responses: '200': description: 200 response for update_guild_template content: application/json: schema: $ref: '#/components/schemas/GuildTemplateResponse' 4XX: $ref: '#/components/responses/ClientErrorResponse' security: - BotToken: [] tags: - Guilds /guilds/{guild_id}/templates: parameters: - name: guild_id in: path schema: $ref: '#/components/schemas/SnowflakeType' required: true get: operationId: list_guild_templates responses: '200': description: 200 response for list_guild_templates content: application/json: schema: type: - array - 'null' items: $ref: '#/components/schemas/GuildTemplateResponse' 4XX: $ref: '#/components/responses/ClientErrorResponse' security: - BotToken: [] tags: - Guilds post: operationId: create_guild_template requestBody: content: application/json: schema: type: object properties: name: type: string minLength: 1 maxLength: 100 description: type: - string - 'null' maxLength: 120 required: - name required: true responses: '200': description: 200 response for create_guild_template content: application/json: schema: $ref: '#/components/schemas/GuildTemplateResponse' 4XX: $ref: '#/components/responses/ClientErrorResponse' security: - BotToken: [] tags: - Guilds /guilds/{guild_id}/stickers/{sticker_id}: parameters: - name: guild_id in: path schema: $ref: '#/components/schemas/SnowflakeType' required: true - name: sticker_id in: path schema: $ref: '#/components/schemas/SnowflakeType' required: true get: operationId: get_guild_sticker responses: '200': description: 200 response for get_guild_sticker content: application/json: schema: $ref: '#/components/schemas/GuildStickerResponse' 4XX: $ref: '#/components/responses/ClientErrorResponse' security: - BotToken: [] tags: - Guilds delete: operationId: delete_guild_sticker responses: '204': description: 204 response for delete_guild_sticker 4XX: $ref: '#/components/responses/ClientErrorResponse' security: - BotToken: [] tags: - Guilds patch: operationId: update_guild_sticker requestBody: content: application/json: schema: type: object properties: name: type: string minLength: 2 maxLength: 30 tags: type: string minLength: 1 maxLength: 200 description: type: - string - 'null' maxLength: 100 required: true responses: '200': description: 200 response for update_guild_sticker content: application/json: schema: $ref: '#/components/schemas/GuildStickerResponse' 4XX: $ref: '#/components/responses/ClientErrorResponse' security: - BotToken: [] tags: - Guilds /guilds/{guild_id}/bulk-ban: parameters: - name: guild_id in: path schema: $ref: '#/components/schemas/SnowflakeType' required: true post: operationId: bulk_ban_users_from_guild requestBody: content: application/json: schema: type: object properties: user_ids: type: array items: $ref: '#/components/schemas/SnowflakeType' maxItems: 200 uniqueItems: true delete_message_seconds: type: - integer - 'null' minimum: 0 maximum: 604800 required: - user_ids required: true responses: '200': description: 200 response for bulk_ban_users_from_guild content: application/json: schema: $ref: '#/components/schemas/BulkBanUsersResponse' 4XX: $ref: '#/components/responses/ClientErrorResponse' security: - BotToken: [] tags: - Guilds /guilds/{guild_id}/stickers: parameters: - name: guild_id in: path schema: $ref: '#/components/schemas/SnowflakeType' required: true get: operationId: list_guild_stickers responses: '200': description: 200 response for list_guild_stickers content: application/json: schema: type: array items: $ref: '#/components/schemas/GuildStickerResponse' 4XX: $ref: '#/components/responses/ClientErrorResponse' security: - BotToken: [] tags: - Guilds post: operationId: create_guild_sticker requestBody: content: multipart/form-data: schema: type: object properties: name: type: string minLength: 2 maxLength: 30 tags: type: string minLength: 1 maxLength: 200 description: type: - string - 'null' maxLength: 100 file: type: string contentEncoding: binary required: - name - tags - file required: true responses: '201': description: 201 response for create_guild_sticker content: application/json: schema: $ref: '#/components/schemas/GuildStickerResponse' 4XX: $ref: '#/components/responses/ClientErrorResponse' security: - BotToken: [] tags: - Guilds /guilds/{guild_id}/webhooks: parameters: - name: guild_id in: path schema: $ref: '#/components/schemas/SnowflakeType' required: true get: operationId: get_guild_webhooks responses: '200': description: 200 response for get_guild_webhooks content: application/json: schema: type: - array - 'null' items: oneOf: - $ref: '#/components/schemas/ApplicationIncomingWebhookResponse' - $ref: '#/components/schemas/ChannelFollowerWebhookResponse' - $ref: '#/components/schemas/GuildIncomingWebhookResponse' 4XX: $ref: '#/components/responses/ClientErrorResponse' security: - BotToken: [] tags: - Guilds /guilds/{guild_id}/channels: parameters: - name: guild_id in: path schema: $ref: '#/components/schemas/SnowflakeType' required: true get: operationId: list_guild_channels responses: '200': description: 200 response for list_guild_channels content: application/json: schema: type: - array - 'null' items: oneOf: - $ref: '#/components/schemas/GuildChannelResponse' - $ref: '#/components/schemas/PrivateChannelResponse' - $ref: '#/components/schemas/PrivateGroupChannelResponse' - $ref: '#/components/schemas/ThreadResponse' 4XX: $ref: '#/components/responses/ClientErrorResponse' security: - BotToken: [] tags: - Guilds post: operationId: create_guild_channel requestBody: content: application/json: schema: $ref: '#/components/schemas/CreateGuildChannelRequest' required: true responses: '201': description: 201 response for create_guild_channel content: application/json: schema: $ref: '#/components/schemas/GuildChannelResponse' 4XX: $ref: '#/components/responses/ClientErrorResponse' security: - BotToken: [] tags: - Guilds patch: operationId: bulk_update_guild_channels requestBody: content: application/json: schema: type: array items: type: object properties: id: $ref: '#/components/schemas/SnowflakeType' position: type: - integer - 'null' minimum: 0 format: int32 parent_id: oneOf: - type: 'null' - $ref: '#/components/schemas/SnowflakeType' lock_permissions: type: - boolean - 'null' required: true responses: '204': description: 204 response for bulk_update_guild_channels 4XX: $ref: '#/components/responses/ClientErrorResponse' security: - BotToken: [] tags: - Guilds /guilds/{guild_id}/members/{user_id}: parameters: - name: guild_id in: path schema: $ref: '#/components/schemas/SnowflakeType' required: true - name: user_id in: path schema: $ref: '#/components/schemas/SnowflakeType' required: true get: operationId: get_guild_member responses: '200': description: 200 response for get_guild_member content: application/json: schema: $ref: '#/components/schemas/GuildMemberResponse' 4XX: $ref: '#/components/responses/ClientErrorResponse' security: - BotToken: [] tags: - Guilds put: operationId: add_guild_member requestBody: content: application/json: schema: type: object properties: nick: type: - string - 'null' maxLength: 32 roles: type: - array - 'null' items: oneOf: - type: 'null' - $ref: '#/components/schemas/SnowflakeType' maxItems: 1521 uniqueItems: true mute: type: - boolean - 'null' deaf: type: - boolean - 'null' access_token: type: string maxLength: 152133 flags: type: - integer - 'null' required: - access_token required: true responses: '201': description: 201 response for add_guild_member content: application/json: schema: $ref: '#/components/schemas/GuildMemberResponse' '204': description: 204 response for add_guild_member 4XX: $ref: '#/components/responses/ClientErrorResponse' security: - BotToken: [] tags: - Guilds delete: operationId: delete_guild_member responses: '204': description: 204 response for delete_guild_member 4XX: $ref: '#/components/responses/ClientErrorResponse' security: - BotToken: [] tags: - Guilds patch: operationId: update_guild_member requestBody: content: application/json: schema: type: object properties: nick: type: - string - 'null' maxLength: 32 roles: type: - array - 'null' items: oneOf: - type: 'null' - $ref: '#/components/schemas/SnowflakeType' maxItems: 1521 uniqueItems: true mute: type: - boolean - 'null' deaf: type: - boolean - 'null' channel_id: oneOf: - type: 'null' - $ref: '#/components/schemas/SnowflakeType' communication_disabled_until: type: - string - 'null' format: date-time flags: type: - integer - 'null' required: true responses: '200': description: 200 response for update_guild_member content: application/json: schema: $ref: '#/components/schemas/GuildMemberResponse' '204': description: 204 response for update_guild_member 4XX: $ref: '#/components/responses/ClientErrorResponse' security: - BotToken: [] tags: - Guilds /guilds/{guild_id}/members: parameters: - name: guild_id in: path schema: $ref: '#/components/schemas/SnowflakeType' required: true get: operationId: list_guild_members parameters: - name: limit in: query schema: type: integer minimum: 1 maximum: 1000 - name: after in: query schema: type: integer minimum: 0 responses: '200': description: 200 response for list_guild_members content: application/json: schema: type: array items: $ref: '#/components/schemas/GuildMemberResponse' 4XX: $ref: '#/components/responses/ClientErrorResponse' security: - BotToken: [] tags: - Guilds /guilds/{guild_id}/preview: parameters: - name: guild_id in: path schema: $ref: '#/components/schemas/SnowflakeType' required: true get: operationId: get_guild_preview responses: '200': description: 200 response for get_guild_preview content: application/json: schema: $ref: '#/components/schemas/GuildPreviewResponse' 4XX: $ref: '#/components/responses/ClientErrorResponse' security: - BotToken: [] tags: - Guilds /guilds/{guild_id}/invites: parameters: - name: guild_id in: path schema: $ref: '#/components/schemas/SnowflakeType' required: true get: operationId: list_guild_invites responses: '200': description: 200 response for list_guild_invites content: application/json: schema: type: - array - 'null' items: anyOf: - $ref: '#/components/schemas/FriendInviteResponse' - $ref: '#/components/schemas/GroupDMInviteResponse' - $ref: '#/components/schemas/GuildInviteResponse' x-discord-union: oneOf 4XX: $ref: '#/components/responses/ClientErrorResponse' security: - BotToken: [] tags: - Guilds /guilds/{guild_id}/regions: parameters: - name: guild_id in: path schema: $ref: '#/components/schemas/SnowflakeType' required: true get: operationId: list_guild_voice_regions responses: '200': description: 200 response for list_guild_voice_regions content: application/json: schema: type: - array - 'null' items: $ref: '#/components/schemas/VoiceRegionResponse' 4XX: $ref: '#/components/responses/ClientErrorResponse' security: - BotToken: [] tags: - Guilds /guilds/{guild_id}/emojis/{emoji_id}: parameters: - name: guild_id in: path schema: $ref: '#/components/schemas/SnowflakeType' required: true - name: emoji_id in: path schema: $ref: '#/components/schemas/SnowflakeType' required: true get: operationId: get_guild_emoji responses: '200': description: 200 response for get_guild_emoji content: application/json: schema: $ref: '#/components/schemas/EmojiResponse' 4XX: $ref: '#/components/responses/ClientErrorResponse' security: - BotToken: [] tags: - Guilds delete: operationId: delete_guild_emoji responses: '204': description: 204 response for delete_guild_emoji 4XX: $ref: '#/components/responses/ClientErrorResponse' security: - BotToken: [] tags: - Guilds patch: operationId: update_guild_emoji requestBody: content: application/json: schema: type: object properties: name: type: string minLength: 2 maxLength: 32 roles: type: - array - 'null' items: oneOf: - type: 'null' - $ref: '#/components/schemas/SnowflakeType' maxItems: 1521 uniqueItems: true required: true responses: '200': description: 200 response for update_guild_emoji content: application/json: schema: $ref: '#/components/schemas/EmojiResponse' 4XX: $ref: '#/components/responses/ClientErrorResponse' security: - BotToken: [] tags: - Guilds /guilds/{guild_id}/emojis: parameters: - name: guild_id in: path schema: $ref: '#/components/schemas/SnowflakeType' required: true get: operationId: list_guild_emojis responses: '200': description: 200 response for list_guild_emojis content: application/json: schema: type: - array - 'null' items: $ref: '#/components/schemas/EmojiResponse' 4XX: $ref: '#/components/responses/ClientErrorResponse' security: - BotToken: [] tags: - Guilds post: operationId: create_guild_emoji requestBody: content: application/json: schema: type: object properties: name: type: string minLength: 2 maxLength: 32 image: type: string contentEncoding: base64 roles: type: - array - 'null' items: oneOf: - type: 'null' - $ref: '#/components/schemas/SnowflakeType' maxItems: 1521 uniqueItems: true required: - name - image required: true responses: '201': description: 201 response for create_guild_emoji content: application/json: schema: $ref: '#/components/schemas/EmojiResponse' 4XX: $ref: '#/components/responses/ClientErrorResponse' security: - BotToken: [] tags: - Guilds /guilds/{guild_id}/widget: parameters: - name: guild_id in: path schema: $ref: '#/components/schemas/SnowflakeType' required: true get: operationId: get_guild_widget_settings responses: '200': description: 200 response for get_guild_widget_settings content: application/json: schema: $ref: '#/components/schemas/WidgetSettingsResponse' 4XX: $ref: '#/components/responses/ClientErrorResponse' security: - BotToken: [] tags: - Guilds patch: operationId: update_guild_widget_settings requestBody: content: application/json: schema: type: object properties: channel_id: oneOf: - type: 'null' - $ref: '#/components/schemas/SnowflakeType' enabled: type: - boolean - 'null' required: true responses: '200': description: 200 response for update_guild_widget_settings content: application/json: schema: $ref: '#/components/schemas/WidgetSettingsResponse' 4XX: $ref: '#/components/responses/ClientErrorResponse' security: - BotToken: [] tags: - Guilds /guilds/{guild_id}/roles/{role_id}: parameters: - name: guild_id in: path schema: $ref: '#/components/schemas/SnowflakeType' required: true - name: role_id in: path schema: $ref: '#/components/schemas/SnowflakeType' required: true delete: operationId: delete_guild_role responses: '204': description: 204 response for delete_guild_role 4XX: $ref: '#/components/responses/ClientErrorResponse' security: - BotToken: [] tags: - Guilds patch: operationId: update_guild_role requestBody: content: application/json: schema: type: object properties: name: type: - string - 'null' maxLength: 100 permissions: type: - integer - 'null' color: type: - integer - 'null' minimum: 0 maximum: 16777215 hoist: type: - boolean - 'null' mentionable: type: - boolean - 'null' icon: type: - string - 'null' contentEncoding: base64 unicode_emoji: type: - string - 'null' maxLength: 100 required: true responses: '200': description: 200 response for update_guild_role content: application/json: schema: $ref: '#/components/schemas/GuildRoleResponse' 4XX: $ref: '#/components/responses/ClientErrorResponse' security: - BotToken: [] tags: - Guilds /guilds/{guild_id}/roles: parameters: - name: guild_id in: path schema: $ref: '#/components/schemas/SnowflakeType' required: true get: operationId: list_guild_roles responses: '200': description: 200 response for list_guild_roles content: application/json: schema: type: array items: $ref: '#/components/schemas/GuildRoleResponse' 4XX: $ref: '#/components/responses/ClientErrorResponse' security: - BotToken: [] tags: - Guilds post: operationId: create_guild_role requestBody: content: application/json: schema: type: object properties: name: type: - string - 'null' maxLength: 100 permissions: type: - integer - 'null' color: type: - integer - 'null' minimum: 0 maximum: 16777215 hoist: type: - boolean - 'null' mentionable: type: - boolean - 'null' icon: type: - string - 'null' contentEncoding: base64 unicode_emoji: type: - string - 'null' maxLength: 100 required: true responses: '200': description: 200 response for create_guild_role content: application/json: schema: $ref: '#/components/schemas/GuildRoleResponse' 4XX: $ref: '#/components/responses/ClientErrorResponse' security: - BotToken: [] tags: - Guilds patch: operationId: bulk_update_guild_roles requestBody: content: application/json: schema: type: array items: type: object properties: id: oneOf: - type: 'null' - $ref: '#/components/schemas/SnowflakeType' position: type: - integer - 'null' format: int32 required: true responses: '200': description: 200 response for bulk_update_guild_roles content: application/json: schema: type: array items: $ref: '#/components/schemas/GuildRoleResponse' 4XX: $ref: '#/components/responses/ClientErrorResponse' security: - BotToken: [] tags: - Guilds /guilds/{guild_id}/prune: parameters: - name: guild_id in: path schema: $ref: '#/components/schemas/SnowflakeType' required: true get: operationId: preview_prune_guild parameters: - name: days in: query schema: type: integer minimum: 1 maximum: 30 - name: include_roles in: query schema: oneOf: - type: string - type: array items: oneOf: - type: 'null' - $ref: '#/components/schemas/SnowflakeType' maxItems: 100 uniqueItems: true responses: '200': description: 200 response for preview_prune_guild content: application/json: schema: $ref: '#/components/schemas/GuildPruneResponse' 4XX: $ref: '#/components/responses/ClientErrorResponse' security: - BotToken: [] tags: - Guilds post: operationId: prune_guild requestBody: content: application/json: schema: type: object properties: days: type: - integer - 'null' minimum: 1 maximum: 30 compute_prune_count: type: - boolean - 'null' include_roles: oneOf: - type: string - type: array items: oneOf: - type: 'null' - $ref: '#/components/schemas/SnowflakeType' maxItems: 100 uniqueItems: true - type: 'null' required: true responses: '200': description: 200 response for prune_guild content: application/json: schema: $ref: '#/components/schemas/GuildPruneResponse' 4XX: $ref: '#/components/responses/ClientErrorResponse' security: - BotToken: [] tags: - Guilds /guilds/{guild_id}/bans/{user_id}: parameters: - name: guild_id in: path schema: $ref: '#/components/schemas/SnowflakeType' required: true - name: user_id in: path schema: $ref: '#/components/schemas/SnowflakeType' required: true get: operationId: get_guild_ban responses: '200': description: 200 response for get_guild_ban content: application/json: schema: $ref: '#/components/schemas/GuildBanResponse' 4XX: $ref: '#/components/responses/ClientErrorResponse' security: - BotToken: [] tags: - Guilds put: operationId: ban_user_from_guild requestBody: content: application/json: schema: type: object properties: delete_message_seconds: type: - integer - 'null' minimum: 0 maximum: 604800 delete_message_days: type: - integer - 'null' minimum: 0 maximum: 7 required: true responses: '204': description: 204 response for ban_user_from_guild 4XX: $ref: '#/components/responses/ClientErrorResponse' security: - BotToken: [] tags: - Guilds delete: operationId: unban_user_from_guild responses: '204': description: 204 response for unban_user_from_guild 4XX: $ref: '#/components/responses/ClientErrorResponse' security: - BotToken: [] tags: - Guilds /guilds/{guild_id}/bans: parameters: - name: guild_id in: path schema: $ref: '#/components/schemas/SnowflakeType' required: true get: operationId: list_guild_bans parameters: - name: limit in: query schema: type: integer minimum: 1 maximum: 1000 - name: before in: query schema: $ref: '#/components/schemas/SnowflakeType' - name: after in: query schema: $ref: '#/components/schemas/SnowflakeType' responses: '200': description: 200 response for list_guild_bans content: application/json: schema: type: - array - 'null' items: $ref: '#/components/schemas/GuildBanResponse' 4XX: $ref: '#/components/responses/ClientErrorResponse' security: - BotToken: [] tags: - Guilds /guilds/{guild_id}/mfa: parameters: - name: guild_id in: path schema: $ref: '#/components/schemas/SnowflakeType' required: true post: operationId: set_guild_mfa_level requestBody: content: application/json: schema: type: object properties: level: $ref: '#/components/schemas/GuildMFALevel' required: - level required: true responses: '200': description: 200 response for set_guild_mfa_level content: application/json: schema: $ref: '#/components/schemas/GuildMFALevelResponse' 4XX: $ref: '#/components/responses/ClientErrorResponse' security: - BotToken: [] tags: - Guilds /guilds/{guild_id}: parameters: - name: guild_id in: path schema: $ref: '#/components/schemas/SnowflakeType' required: true get: operationId: get_guild parameters: - name: with_counts in: query schema: type: boolean responses: '200': description: 200 response for get_guild content: application/json: schema: $ref: '#/components/schemas/GuildWithCountsResponse' 4XX: $ref: '#/components/responses/ClientErrorResponse' security: - BotToken: [] tags: - Guilds delete: operationId: delete_guild responses: '204': description: 204 response for delete_guild 4XX: $ref: '#/components/responses/ClientErrorResponse' security: - BotToken: [] tags: - Guilds patch: operationId: update_guild requestBody: content: application/json: schema: $ref: '#/components/schemas/GuildPatchRequestPartial' required: true responses: '200': description: 200 response for update_guild content: application/json: schema: $ref: '#/components/schemas/GuildResponse' 4XX: $ref: '#/components/responses/ClientErrorResponse' security: - BotToken: [] tags: - Guilds /applications/{application_id}/entitlements: get: operationId: listEntitlements summary: Discord List entitlements description: Returns all entitlements for a given app, active and expired. tags: - Guilds parameters: - name: application_id in: path required: true schema: type: string - name: user_id in: query schema: type: string - name: sku_ids in: query schema: type: string - name: before in: query schema: type: string - name: after in: query schema: type: string - name: limit in: query schema: type: integer maximum: 100 default: 100 - name: guild_id in: query schema: type: string responses: '200': description: List of entitlement objects content: application/json: schema: type: array items: $ref: '#/components/schemas/Entitlement' 4XX: $ref: '#/components/responses/ClientError' components: schemas: AutomodTriggerType: type: integer oneOf: - title: KEYWORD description: Check if content contains words from a list of keywords or matches regex const: 1 - title: SPAM_LINK description: DEPRECATED const: 2 - title: ML_SPAM description: Check if content represents generic spam const: 3 - title: DEFAULT_KEYWORD_LIST description: Check if content contains words from internal pre-defined wordsets const: 4 - title: MENTION_SPAM description: Check if content contains more unique mentions than allowed const: 5 format: int32 Int53Type: type: integer minimum: -9007199254740991 maximum: 9007199254740991 format: int64 IntegrationExpireBehaviorTypes: type: integer oneOf: - title: REMOVE_ROLE description: Remove role const: 0 - title: KICK description: Kick const: 1 format: int32 ApplicationCommandUserOptionResponse: type: object properties: type: type: integer enum: - 6 allOf: - $ref: '#/components/schemas/ApplicationCommandOptionType' format: int32 name: type: string name_localized: type: - string - 'null' name_localizations: type: - object - 'null' additionalProperties: type: string description: type: string description_localized: type: - string - 'null' description_localizations: type: - object - 'null' additionalProperties: type: string required: type: - boolean - 'null' required: - type - name - description EntityMetadataStageInstanceResponse: type: object properties: {} ApplicationCommandAttachmentOptionResponse: type: object properties: type: type: integer enum: - 11 allOf: - $ref: '#/components/schemas/ApplicationCommandOptionType' format: int32 name: type: string name_localized: type: - string - 'null' name_localizations: type: - object - 'null' additionalProperties: type: string description: type: string description_localized: type: - string - 'null' description_localizations: type: - object - 'null' additionalProperties: type: string required: type: - boolean - 'null' required: - type - name - description MLSpamTriggerMetadataResponse: type: object properties: {} ApplicationTypes: type: integer oneOf: - title: GUILD_ROLE_SUBSCRIPTIONS const: 4 format: int32 GuildAuditLogResponse: type: object properties: audit_log_entries: type: array items: $ref: '#/components/schemas/AuditLogEntryResponse' users: type: array items: $ref: '#/components/schemas/UserResponse' integrations: type: array items: oneOf: - $ref: '#/components/schemas/PartialDiscordIntegrationResponse' - $ref: '#/components/schemas/PartialExternalConnectionIntegrationResponse' - $ref: '#/components/schemas/PartialGuildSubscriptionIntegrationResponse' webhooks: type: array items: oneOf: - $ref: '#/components/schemas/ApplicationIncomingWebhookResponse' - $ref: '#/components/schemas/ChannelFollowerWebhookResponse' - $ref: '#/components/schemas/GuildIncomingWebhookResponse' guild_scheduled_events: type: array items: oneOf: - $ref: '#/components/schemas/ExternalScheduledEventResponse' - $ref: '#/components/schemas/StageScheduledEventResponse' - $ref: '#/components/schemas/VoiceScheduledEventResponse' threads: type: array items: $ref: '#/components/schemas/ThreadResponse' application_commands: type: array items: $ref: '#/components/schemas/ApplicationCommandResponse' auto_moderation_rules: type: array items: oneOf: - $ref: '#/components/schemas/DefaultKeywordRuleResponse' - $ref: '#/components/schemas/KeywordRuleResponse' - $ref: '#/components/schemas/MLSpamRuleResponse' - $ref: '#/components/schemas/MentionSpamRuleResponse' - $ref: '#/components/schemas/SpamLinkRuleResponse' - type: 'null' required: - audit_log_entries - users - integrations - webhooks - guild_scheduled_events - threads - application_commands - auto_moderation_rules FlagToChannelActionResponse: type: object properties: type: type: integer enum: - 2 allOf: - $ref: '#/components/schemas/AutomodActionType' format: int32 metadata: $ref: '#/components/schemas/FlagToChannelActionMetadataResponse' required: - type - metadata SpamLinkRuleResponse: type: object properties: id: $ref: '#/components/schemas/SnowflakeType' guild_id: $ref: '#/components/schemas/SnowflakeType' creator_id: $ref: '#/components/schemas/SnowflakeType' name: type: string event_type: $ref: '#/components/schemas/AutomodEventType' actions: type: array items: oneOf: - $ref: '#/components/schemas/BlockMessageActionResponse' - $ref: '#/components/schemas/FlagToChannelActionResponse' - $ref: '#/components/schemas/QuarantineUserActionResponse' - $ref: '#/components/schemas/UserCommunicationDisabledActionResponse' trigger_type: type: integer enum: - 2 allOf: - $ref: '#/components/schemas/AutomodTriggerType' format: int32 enabled: type: - boolean - 'null' exempt_roles: type: - array - 'null' items: $ref: '#/components/schemas/SnowflakeType' uniqueItems: true exempt_channels: type: - array - 'null' items: $ref: '#/components/schemas/SnowflakeType' uniqueItems: true trigger_metadata: $ref: '#/components/schemas/SpamLinkTriggerMetadataResponse' required: - id - guild_id - creator_id - name - event_type - actions - trigger_type - trigger_metadata PrivateGuildMemberResponse: type: object properties: avatar: type: - string - 'null' avatar_decoration_data: oneOf: - type: 'null' - $ref: '#/components/schemas/UserAvatarDecorationResponse' communication_disabled_until: type: - string - 'null' format: date-time flags: type: integer format: int32 joined_at: type: string format: date-time nick: type: - string - 'null' pending: type: boolean premium_since: type: - string - 'null' format: date-time roles: type: array items: $ref: '#/components/schemas/SnowflakeType' uniqueItems: true user: $ref: '#/components/schemas/UserResponse' mute: type: boolean deaf: type: boolean banner: type: - string - 'null' required: - flags - joined_at - pending - roles - user - mute - deaf UserGuildOnboardingResponse: type: object properties: guild_id: $ref: '#/components/schemas/SnowflakeType' prompts: type: array items: $ref: '#/components/schemas/OnboardingPromptResponse' default_channel_ids: type: array items: $ref: '#/components/schemas/SnowflakeType' uniqueItems: true enabled: type: boolean required: - guild_id - prompts - default_channel_ids - enabled DiscordIntegrationResponse: type: object properties: type: type: string enum: - discord allOf: - $ref: '#/components/schemas/IntegrationTypes' name: type: - string - 'null' account: oneOf: - type: 'null' - $ref: '#/components/schemas/AccountResponse' enabled: type: - boolean - 'null' id: $ref: '#/components/schemas/SnowflakeType' application: $ref: '#/components/schemas/IntegrationApplicationResponse' scopes: type: array items: type: string enum: - applications.commands - bot - webhook.incoming allOf: - $ref: '#/components/schemas/OAuth2Scopes' uniqueItems: true user: oneOf: - type: 'null' - $ref: '#/components/schemas/UserResponse' required: - type - id - application - scopes AuditLogEntryResponse: type: object properties: id: $ref: '#/components/schemas/SnowflakeType' action_type: $ref: '#/components/schemas/AuditLogActionTypes' user_id: oneOf: - type: 'null' - $ref: '#/components/schemas/SnowflakeType' target_id: oneOf: - type: 'null' - $ref: '#/components/schemas/SnowflakeType' changes: type: - array - 'null' items: $ref: '#/components/schemas/AuditLogObjectChangeResponse' options: type: - object - 'null' additionalProperties: type: string reason: type: - string - 'null' required: - id - action_type DefaultKeywordListTriggerMetadata: type: object properties: allow_list: type: - array - 'null' items: type: string minLength: 1 maxLength: 60 maxItems: 1000 presets: type: - array - 'null' items: $ref: '#/components/schemas/AutomodKeywordPresetType' uniqueItems: true ChannelFollowerWebhookResponse: type: object properties: application_id: oneOf: - type: 'null' - $ref: '#/components/schemas/SnowflakeType' avatar: type: - string - 'null' channel_id: oneOf: - type: 'null' - $ref: '#/components/schemas/SnowflakeType' guild_id: oneOf: - type: 'null' - $ref: '#/components/schemas/SnowflakeType' id: $ref: '#/components/schemas/SnowflakeType' name: type: string type: type: integer enum: - 2 allOf: - $ref: '#/components/schemas/WebhookTypes' format: int32 user: oneOf: - type: 'null' - $ref: '#/components/schemas/UserResponse' source_guild: oneOf: - type: 'null' - $ref: '#/components/schemas/WebhookSourceGuildResponse' source_channel: oneOf: - type: 'null' - $ref: '#/components/schemas/WebhookSourceChannelResponse' required: - id - name - type OnboardingPromptOptionRequest: type: object properties: id: oneOf: - type: 'null' - $ref: '#/components/schemas/SnowflakeType' title: type: string minLength: 1 maxLength: 50 description: type: - string - 'null' maxLength: 100 emoji_id: oneOf: - type: 'null' - $ref: '#/components/schemas/SnowflakeType' emoji_name: type: - string - 'null' maxLength: 100 emoji_animated: type: - boolean - 'null' role_ids: type: - array - 'null' items: $ref: '#/components/schemas/SnowflakeType' maxItems: 50 uniqueItems: true channel_ids: type: - array - 'null' items: $ref: '#/components/schemas/SnowflakeType' maxItems: 50 uniqueItems: true required: - title IntegrationExpireGracePeriodTypes: type: integer oneOf: - title: ONE_DAY description: 1 day const: 1 - title: THREE_DAYS description: 3 days const: 3 - title: SEVEN_DAYS description: 7 days const: 7 - title: FOURTEEN_DAYS description: 14 days const: 14 - title: THIRTY_DAYS description: 30 days const: 30 format: int32 StickerFormatTypes: type: integer oneOf: - title: PNG const: 1 - title: APNG const: 2 - title: LOTTIE const: 3 - title: GIF const: 4 format: int32 GuildSubscriptionIntegrationResponse: type: object properties: type: type: string enum: - guild_subscription allOf: - $ref: '#/components/schemas/IntegrationTypes' name: type: - string - 'null' account: oneOf: - type: 'null' - $ref: '#/components/schemas/AccountResponse' enabled: type: - boolean - 'null' id: $ref: '#/components/schemas/SnowflakeType' required: - type - id Entitlement: type: object properties: id: $ref: '#/components/schemas/Snowflake' sku_id: $ref: '#/components/schemas/Snowflake' application_id: $ref: '#/components/schemas/Snowflake' user_id: $ref: '#/components/schemas/Snowflake' type: type: integer deleted: type: boolean starts_at: type: string format: date-time ends_at: type: string format: date-time guild_id: $ref: '#/components/schemas/Snowflake' ChannelPermissionOverwriteRequest: type: object properties: id: $ref: '#/components/schemas/SnowflakeType' type: oneOf: - type: 'null' - $ref: '#/components/schemas/ChannelPermissionOverwrites' allow: type: - integer - 'null' deny: type: - integer - 'null' required: - id InviteApplicationResponse: type: object properties: id: $ref: '#/components/schemas/SnowflakeType' name: type: string icon: type: - string - 'null' description: type: string type: oneOf: - type: 'null' - $ref: '#/components/schemas/ApplicationTypes' cover_image: type: - string - 'null' primary_sku_id: oneOf: - type: 'null' - $ref: '#/components/schemas/SnowflakeType' bot: oneOf: - type: 'null' - $ref: '#/components/schemas/UserResponse' slug: type: - string - 'null' guild_id: oneOf: - type: 'null' - $ref: '#/components/schemas/SnowflakeType' rpc_origins: type: - array - 'null' items: type: - string - 'null' bot_public: type: - boolean - 'null' bot_require_code_grant: type: - boolean - 'null' terms_of_service_url: type: - string - 'null' format: uri privacy_policy_url: type: - string - 'null' format: uri custom_install_url: type: - string - 'null' format: uri install_params: oneOf: - type: 'null' - $ref: '#/components/schemas/ApplicationOAuth2InstallParamsResponse' verify_key: type: string flags: type: integer format: int32 max_participants: type: - integer - 'null' format: int32 tags: type: - array - 'null' items: type: string uniqueItems: true required: - id - name - description - verify_key - flags WidgetMember: type: object properties: id: type: string username: type: string discriminator: $ref: '#/components/schemas/WidgetUserDiscriminator' avatar: type: 'null' status: type: string avatar_url: type: string format: uri activity: oneOf: - type: 'null' - $ref: '#/components/schemas/WidgetActivity' deaf: type: - boolean - 'null' mute: type: - boolean - 'null' self_deaf: type: - boolean - 'null' self_mute: type: - boolean - 'null' suppress: type: - boolean - 'null' channel_id: oneOf: - type: 'null' - $ref: '#/components/schemas/SnowflakeType' required: - id - username - discriminator - status - avatar_url IconEmojiResponse: type: object properties: {} ApplicationCommandResponse: type: object properties: id: $ref: '#/components/schemas/SnowflakeType' application_id: $ref: '#/components/schemas/SnowflakeType' version: $ref: '#/components/schemas/SnowflakeType' default_member_permissions: type: - string - 'null' type: $ref: '#/components/schemas/ApplicationCommandType' name: type: string name_localized: type: - string - 'null' name_localizations: type: - object - 'null' additionalProperties: type: string description: type: string description_localized: type: - string - 'null' description_localizations: type: - object - 'null' additionalProperties: type: string guild_id: oneOf: - type: 'null' - $ref: '#/components/schemas/SnowflakeType' dm_permission: type: - boolean - 'null' options: type: - array - 'null' items: oneOf: - $ref: '#/components/schemas/ApplicationCommandAttachmentOptionResponse' - $ref: '#/components/schemas/ApplicationCommandBooleanOptionResponse' - $ref: '#/components/schemas/ApplicationCommandChannelOptionResponse' - $ref: '#/components/schemas/ApplicationCommandIntegerOptionResponse' - $ref: '#/components/schemas/ApplicationCommandMentionableOptionResponse' - $ref: '#/components/schemas/ApplicationCommandNumberOptionResponse' - $ref: '#/components/schemas/ApplicationCommandRoleOptionResponse' - $ref: '#/components/schemas/ApplicationCommandStringOptionResponse' - $ref: '#/components/schemas/ApplicationCommandSubcommandGroupOptionResponse' - $ref: '#/components/schemas/ApplicationCommandSubcommandOptionResponse' - $ref: '#/components/schemas/ApplicationCommandUserOptionResponse' nsfw: type: - boolean - 'null' required: - id - application_id - version - type - name - description MentionSpamTriggerMetadata: type: object properties: mention_total_limit: type: integer minimum: 0 maximum: 50 mention_raid_protection_enabled: type: - boolean - 'null' required: - mention_total_limit SpamLinkTriggerMetadataResponse: type: object properties: {} ThreadMetadataResponse: type: object properties: archived: type: boolean archive_timestamp: type: - string - 'null' format: date-time auto_archive_duration: $ref: '#/components/schemas/ThreadAutoArchiveDuration' locked: type: boolean create_timestamp: type: - string - 'null' format: date-time invitable: type: - boolean - 'null' required: - archived - auto_archive_duration - locked QuarantineUserActionMetadataResponse: type: object properties: {} GroupDMInviteResponse: type: object properties: type: oneOf: - type: 'null' - type: integer enum: - 1 allOf: - $ref: '#/components/schemas/InviteTypes' format: int32 code: type: string inviter: oneOf: - type: 'null' - $ref: '#/components/schemas/UserResponse' max_age: type: - integer - 'null' format: int32 created_at: type: - string - 'null' format: date-time expires_at: type: - string - 'null' format: date-time channel: oneOf: - type: 'null' - $ref: '#/components/schemas/InviteChannelResponse' approximate_member_count: type: - integer - 'null' format: int32 required: - code SnowflakeType: type: string pattern: ^(0|[1-9][0-9]*)$ format: snowflake StickerTypes: type: integer oneOf: - title: STANDARD description: an official sticker in a pack, part of Nitro or in a removed purchasable pack const: 1 - title: GUILD description: a sticker uploaded to a guild for the guild's members const: 2 format: int32 CreateGuildRequestRoleItem: type: object properties: id: type: integer name: type: - string - 'null' maxLength: 100 permissions: type: - integer - 'null' color: type: - integer - 'null' minimum: 0 maximum: 16777215 hoist: type: - boolean - 'null' mentionable: type: - boolean - 'null' unicode_emoji: type: - string - 'null' maxLength: 100 required: - id KeywordRuleResponse: type: object properties: id: $ref: '#/components/schemas/SnowflakeType' guild_id: $ref: '#/components/schemas/SnowflakeType' creator_id: $ref: '#/components/schemas/SnowflakeType' name: type: string event_type: $ref: '#/components/schemas/AutomodEventType' actions: type: array items: oneOf: - $ref: '#/components/schemas/BlockMessageActionResponse' - $ref: '#/components/schemas/FlagToChannelActionResponse' - $ref: '#/components/schemas/QuarantineUserActionResponse' - $ref: '#/components/schemas/UserCommunicationDisabledActionResponse' trigger_type: type: integer enum: - 1 allOf: - $ref: '#/components/schemas/AutomodTriggerType' format: int32 enabled: type: - boolean - 'null' exempt_roles: type: - array - 'null' items: $ref: '#/components/schemas/SnowflakeType' uniqueItems: true exempt_channels: type: - array - 'null' items: $ref: '#/components/schemas/SnowflakeType' uniqueItems: true trigger_metadata: $ref: '#/components/schemas/KeywordTriggerMetadataResponse' required: - id - guild_id - creator_id - name - event_type - actions - trigger_type - trigger_metadata VanityURLErrorResponse: type: object properties: message: type: string code: type: integer format: int32 required: - message - code ApplicationCommandOptionStringChoiceResponse: type: object properties: name: type: string name_localized: type: - string - 'null' name_localizations: type: - object - 'null' additionalProperties: type: string value: type: string required: - name - value MentionSpamUpsertRequest: type: object properties: name: type: string maxLength: 100 event_type: $ref: '#/components/schemas/AutomodEventType' actions: type: - array - 'null' items: oneOf: - $ref: '#/components/schemas/BlockMessageAction' - $ref: '#/components/schemas/FlagToChannelAction' - $ref: '#/components/schemas/QuarantineUserAction' - $ref: '#/components/schemas/UserCommunicationDisabledAction' minItems: 1 maxItems: 5 enabled: type: - boolean - 'null' exempt_roles: type: - array - 'null' items: $ref: '#/components/schemas/SnowflakeType' maxItems: 20 uniqueItems: true exempt_channels: type: - array - 'null' items: $ref: '#/components/schemas/SnowflakeType' maxItems: 50 uniqueItems: true trigger_type: type: integer enum: - 5 allOf: - $ref: '#/components/schemas/AutomodTriggerType' format: int32 trigger_metadata: oneOf: - type: 'null' - $ref: '#/components/schemas/MentionSpamTriggerMetadata' required: - name - event_type - trigger_type VoiceRegionResponse: type: object properties: id: type: string name: type: string custom: type: boolean deprecated: type: boolean optimal: type: boolean required: - id - name - custom - deprecated - optimal EmojiResponse: type: object properties: id: $ref: '#/components/schemas/SnowflakeType' name: type: string user: oneOf: - type: 'null' - $ref: '#/components/schemas/UserResponse' roles: type: array items: $ref: '#/components/schemas/SnowflakeType' require_colons: type: boolean managed: type: boolean animated: type: boolean available: type: boolean required: - id - name - roles - require_colons - managed - animated - available ExternalScheduledEventResponse: type: object properties: id: $ref: '#/components/schemas/SnowflakeType' guild_id: $ref: '#/components/schemas/SnowflakeType' name: type: string description: type: - string - 'null' channel_id: oneOf: - type: 'null' - $ref: '#/components/schemas/SnowflakeType' creator_id: oneOf: - type: 'null' - $ref: '#/components/schemas/SnowflakeType' creator: oneOf: - type: 'null' - $ref: '#/components/schemas/UserResponse' image: type: - string - 'null' scheduled_start_time: type: string format: date-time scheduled_end_time: type: - string - 'null' format: date-time status: $ref: '#/components/schemas/GuildScheduledEventStatuses' entity_type: type: integer enum: - 3 allOf: - $ref: '#/components/schemas/GuildScheduledEventEntityTypes' format: int32 entity_id: oneOf: - type: 'null' - $ref: '#/components/schemas/SnowflakeType' user_count: type: - integer - 'null' format: int32 privacy_level: $ref: '#/components/schemas/GuildScheduledEventPrivacyLevels' user_rsvp: oneOf: - type: 'null' - $ref: '#/components/schemas/ScheduledEventUserResponse' entity_metadata: $ref: '#/components/schemas/EntityMetadataExternalResponse' required: - id - guild_id - name - scheduled_start_time - status - entity_type - privacy_level - entity_metadata OnboardingPromptResponse: type: object properties: id: $ref: '#/components/schemas/SnowflakeType' title: type: string options: type: array items: $ref: '#/components/schemas/OnboardingPromptOptionResponse' single_select: type: boolean required: type: boolean in_onboarding: type: boolean type: $ref: '#/components/schemas/OnboardingPromptType' required: - id - title - options - single_select - required - in_onboarding - type Error: type: object description: A single error, either for an API response or a specific field. properties: code: type: integer description: Discord internal error code. See error code reference message: type: string description: Human-readable error message required: - code - message StageScheduledEventCreateRequest: type: object properties: name: type: string maxLength: 100 description: type: - string - 'null' maxLength: 1000 image: type: - string - 'null' contentEncoding: base64 scheduled_start_time: type: string format: date-time scheduled_end_time: type: - string - 'null' format: date-time privacy_level: $ref: '#/components/schemas/GuildScheduledEventPrivacyLevels' entity_type: type: integer enum: - 1 allOf: - $ref: '#/components/schemas/GuildScheduledEventEntityTypes' format: int32 channel_id: oneOf: - type: 'null' - $ref: '#/components/schemas/SnowflakeType' entity_metadata: oneOf: - type: 'null' - $ref: '#/components/schemas/EntityMetadataStageInstance' required: - name - scheduled_start_time - privacy_level - entity_type GuildPruneResponse: type: object properties: pruned: type: - integer - 'null' format: int32 QuarantineUserActionMetadata: type: object properties: {} WelcomeScreenPatchRequestPartial: type: object properties: description: type: - string - 'null' maxLength: 140 welcome_channels: type: - array - 'null' items: $ref: '#/components/schemas/GuildWelcomeChannel' maxItems: 5 enabled: type: - boolean - 'null' GuildCreateRequest: type: object properties: description: type: - string - 'null' minLength: 0 maxLength: 120 name: type: string minLength: 2 maxLength: 100 region: type: - string - 'null' icon: type: - string - 'null' contentEncoding: base64 verification_level: oneOf: - type: 'null' - $ref: '#/components/schemas/VerificationLevels' default_message_notifications: oneOf: - type: 'null' - $ref: '#/components/schemas/UserNotificationSettings' explicit_content_filter: oneOf: - type: 'null' - $ref: '#/components/schemas/GuildExplicitContentFilterTypes' preferred_locale: oneOf: - type: 'null' - $ref: '#/components/schemas/AvailableLocalesEnum' afk_timeout: oneOf: - type: 'null' - $ref: '#/components/schemas/AfkTimeouts' roles: type: - array - 'null' items: $ref: '#/components/schemas/CreateGuildRequestRoleItem' maxItems: 1521 channels: type: - array - 'null' items: $ref: '#/components/schemas/CreateGuildRequestChannelItem' maxItems: 1521 afk_channel_id: oneOf: - type: 'null' - $ref: '#/components/schemas/SnowflakeType' system_channel_id: oneOf: - type: 'null' - $ref: '#/components/schemas/SnowflakeType' system_channel_flags: type: - integer - 'null' required: - name WidgetSettingsResponse: type: object properties: enabled: type: boolean channel_id: oneOf: - type: 'null' - $ref: '#/components/schemas/SnowflakeType' required: - enabled OnboardingPromptOptionResponse: type: object properties: id: $ref: '#/components/schemas/SnowflakeType' title: type: string description: type: string emoji: $ref: '#/components/schemas/SettingsEmojiResponse' role_ids: type: array items: $ref: '#/components/schemas/SnowflakeType' uniqueItems: true channel_ids: type: array items: $ref: '#/components/schemas/SnowflakeType' uniqueItems: true required: - id - title - description - emoji - role_ids - channel_ids ResourceChannelResponse: type: object properties: channel_id: $ref: '#/components/schemas/SnowflakeType' title: type: string emoji: oneOf: - type: 'null' - $ref: '#/components/schemas/SettingsEmojiResponse' icon: type: - string - 'null' description: type: string required: - channel_id - title - description InviteChannelRecipientResponse: type: object properties: username: type: string required: - username GuildHomeSettingsResponse: type: object properties: guild_id: $ref: '#/components/schemas/SnowflakeType' enabled: type: boolean welcome_message: oneOf: - type: 'null' - $ref: '#/components/schemas/WelcomeMessageResponse' new_member_actions: type: - array - 'null' items: oneOf: - type: 'null' - $ref: '#/components/schemas/NewMemberActionResponse' resource_channels: type: - array - 'null' items: oneOf: - type: 'null' - $ref: '#/components/schemas/ResourceChannelResponse' required: - guild_id - enabled GuildScheduledEventStatuses: type: integer oneOf: - title: SCHEDULED const: 1 - title: ACTIVE const: 2 - title: COMPLETED const: 3 - title: CANCELED const: 4 format: int32 FlagToChannelActionMetadataResponse: type: object properties: channel_id: $ref: '#/components/schemas/SnowflakeType' required: - channel_id GuildMFALevelResponse: type: object properties: level: $ref: '#/components/schemas/GuildMFALevel' required: - level UserResponse: type: object properties: id: $ref: '#/components/schemas/SnowflakeType' username: type: string avatar: type: - string - 'null' discriminator: type: string public_flags: type: integer format: int32 flags: $ref: '#/components/schemas/Int53Type' bot: type: - boolean - 'null' system: type: - boolean - 'null' banner: type: - string - 'null' accent_color: type: - integer - 'null' format: int32 global_name: type: - string - 'null' required: - id - username - discriminator - public_flags - flags DefaultKeywordListUpsertRequest: type: object properties: name: type: string maxLength: 100 event_type: $ref: '#/components/schemas/AutomodEventType' actions: type: - array - 'null' items: oneOf: - $ref: '#/components/schemas/BlockMessageAction' - $ref: '#/components/schemas/FlagToChannelAction' - $ref: '#/components/schemas/QuarantineUserAction' - $ref: '#/components/schemas/UserCommunicationDisabledAction' minItems: 1 maxItems: 5 enabled: type: - boolean - 'null' exempt_roles: type: - array - 'null' items: $ref: '#/components/schemas/SnowflakeType' maxItems: 20 uniqueItems: true exempt_channels: type: - array - 'null' items: $ref: '#/components/schemas/SnowflakeType' maxItems: 50 uniqueItems: true trigger_type: type: integer enum: - 4 allOf: - $ref: '#/components/schemas/AutomodTriggerType' format: int32 trigger_metadata: $ref: '#/components/schemas/DefaultKeywordListTriggerMetadata' required: - name - event_type - trigger_type - trigger_metadata KeywordUpsertRequest: type: object properties: name: type: string maxLength: 100 event_type: $ref: '#/components/schemas/AutomodEventType' actions: type: - array - 'null' items: oneOf: - $ref: '#/components/schemas/BlockMessageAction' - $ref: '#/components/schemas/FlagToChannelAction' - $ref: '#/components/schemas/QuarantineUserAction' - $ref: '#/components/schemas/UserCommunicationDisabledAction' minItems: 1 maxItems: 5 enabled: type: - boolean - 'null' exempt_roles: type: - array - 'null' items: $ref: '#/components/schemas/SnowflakeType' maxItems: 20 uniqueItems: true exempt_channels: type: - array - 'null' items: $ref: '#/components/schemas/SnowflakeType' maxItems: 50 uniqueItems: true trigger_type: type: integer enum: - 1 allOf: - $ref: '#/components/schemas/AutomodTriggerType' format: int32 trigger_metadata: oneOf: - type: 'null' - $ref: '#/components/schemas/KeywordTriggerMetadata' required: - name - event_type - trigger_type EntityMetadataVoice: type: object properties: {} ChannelPermissionOverwrites: type: integer oneOf: - title: ROLE const: 0 - title: MEMBER const: 1 format: int32 ThreadsResponse: type: object properties: threads: type: array items: $ref: '#/components/schemas/ThreadResponse' members: type: array items: $ref: '#/components/schemas/ThreadMemberResponse' has_more: type: - boolean - 'null' required: - threads - members ApplicationCommandOptionNumberChoiceResponse: type: object properties: name: type: string name_localized: type: - string - 'null' name_localizations: type: - object - 'null' additionalProperties: type: string value: type: number format: double required: - name - value PartialGuildSubscriptionIntegrationResponse: type: object properties: id: $ref: '#/components/schemas/SnowflakeType' type: type: string enum: - guild_subscription allOf: - $ref: '#/components/schemas/IntegrationTypes' name: type: - string - 'null' account: oneOf: - type: 'null' - $ref: '#/components/schemas/AccountResponse' required: - id - type QuarantineUserActionResponse: type: object properties: type: type: integer enum: - 4 allOf: - $ref: '#/components/schemas/AutomodActionType' format: int32 metadata: $ref: '#/components/schemas/QuarantineUserActionMetadataResponse' required: - type - metadata VoiceScheduledEventResponse: type: object properties: id: $ref: '#/components/schemas/SnowflakeType' guild_id: $ref: '#/components/schemas/SnowflakeType' name: type: string description: type: - string - 'null' channel_id: oneOf: - type: 'null' - $ref: '#/components/schemas/SnowflakeType' creator_id: oneOf: - type: 'null' - $ref: '#/components/schemas/SnowflakeType' creator: oneOf: - type: 'null' - $ref: '#/components/schemas/UserResponse' image: type: - string - 'null' scheduled_start_time: type: string format: date-time scheduled_end_time: type: - string - 'null' format: date-time status: $ref: '#/components/schemas/GuildScheduledEventStatuses' entity_type: type: integer enum: - 2 allOf: - $ref: '#/components/schemas/GuildScheduledEventEntityTypes' format: int32 entity_id: oneOf: - type: 'null' - $ref: '#/components/schemas/SnowflakeType' user_count: type: - integer - 'null' format: int32 privacy_level: $ref: '#/components/schemas/GuildScheduledEventPrivacyLevels' user_rsvp: oneOf: - type: 'null' - $ref: '#/components/schemas/ScheduledEventUserResponse' entity_metadata: oneOf: - type: 'null' - $ref: '#/components/schemas/EntityMetadataVoiceResponse' required: - id - guild_id - name - scheduled_start_time - status - entity_type - privacy_level AuditLogObjectChangeResponse: type: object properties: key: type: - string - 'null' new_value: {} old_value: {} DefaultKeywordListTriggerMetadataResponse: type: object properties: allow_list: type: array items: type: string presets: type: array items: $ref: '#/components/schemas/AutomodKeywordPresetType' uniqueItems: true required: - allow_list - presets GuildChannelResponse: type: object properties: id: $ref: '#/components/schemas/SnowflakeType' type: type: integer enum: - 0 - 2 - 4 - 5 - 13 - 14 - 15 allOf: - $ref: '#/components/schemas/ChannelTypes' format: int32 last_message_id: oneOf: - type: 'null' - $ref: '#/components/schemas/SnowflakeType' flags: type: integer format: int32 last_pin_timestamp: type: - string - 'null' format: date-time guild_id: $ref: '#/components/schemas/SnowflakeType' name: type: string parent_id: oneOf: - type: 'null' - $ref: '#/components/schemas/SnowflakeType' rate_limit_per_user: type: - integer - 'null' format: int32 bitrate: type: - integer - 'null' format: int32 user_limit: type: - integer - 'null' format: int32 rtc_region: type: - string - 'null' video_quality_mode: oneOf: - type: 'null' - $ref: '#/components/schemas/VideoQualityModes' permissions: type: - string - 'null' topic: type: - string - 'null' default_auto_archive_duration: oneOf: - type: 'null' - $ref: '#/components/schemas/ThreadAutoArchiveDuration' default_thread_rate_limit_per_user: type: - integer - 'null' format: int32 position: type: integer format: int32 permission_overwrites: type: - array - 'null' items: $ref: '#/components/schemas/ChannelPermissionOverwriteResponse' nsfw: type: - boolean - 'null' available_tags: type: - array - 'null' items: $ref: '#/components/schemas/ForumTagResponse' default_reaction_emoji: oneOf: - type: 'null' - $ref: '#/components/schemas/DefaultReactionEmojiResponse' default_sort_order: oneOf: - type: 'null' - $ref: '#/components/schemas/ThreadSortOrder' default_forum_layout: oneOf: - type: 'null' - $ref: '#/components/schemas/ForumLayout' required: - id - type - flags - guild_id - name - position GuildMFALevel: type: integer oneOf: - title: NONE description: Guild has no MFA/2FA requirement for moderation actions const: 0 - title: ELEVATED description: Guild has a 2FA requirement for moderation actions const: 1 format: int32 PrivateChannelResponse: type: object properties: id: $ref: '#/components/schemas/SnowflakeType' type: type: integer enum: - 1 allOf: - $ref: '#/components/schemas/ChannelTypes' format: int32 last_message_id: oneOf: - type: 'null' - $ref: '#/components/schemas/SnowflakeType' flags: type: integer format: int32 last_pin_timestamp: type: - string - 'null' format: date-time recipients: type: array items: $ref: '#/components/schemas/UserResponse' required: - id - type - flags - recipients WebhookSourceGuildResponse: type: object properties: id: $ref: '#/components/schemas/SnowflakeType' icon: type: - string - 'null' name: type: string required: - id - name MentionSpamTriggerMetadataResponse: type: object properties: mention_total_limit: type: integer format: int32 required: - mention_total_limit AutomodActionType: type: integer oneOf: - title: BLOCK_MESSAGE description: Block a user's message and prevent it from being posted. A custom explanation can be specified and shown to members whenever their message is blocked const: 1 - title: FLAG_TO_CHANNEL description: Send a system message to a channel in order to log the user message that triggered the rule const: 2 - title: USER_COMMUNICATION_DISABLED description: Temporarily disable a user's ability to communicate in the server (timeout) const: 3 - title: QUARANTINE_USER description: Prevent a user from interacting in the server const: 4 format: int32 BulkBanUsersResponse: type: object properties: banned_users: type: array items: $ref: '#/components/schemas/SnowflakeType' failed_users: type: array items: $ref: '#/components/schemas/SnowflakeType' required: - banned_users - failed_users WidgetResponse: type: object properties: id: $ref: '#/components/schemas/SnowflakeType' name: type: string instant_invite: type: - string - 'null' channels: type: array items: $ref: '#/components/schemas/WidgetChannel' members: type: array items: $ref: '#/components/schemas/WidgetMember' presence_count: type: integer format: int32 required: - id - name - channels - members - presence_count AccountResponse: type: object properties: id: type: string name: type: - string - 'null' required: - id BlockMessageAction: type: object properties: type: type: integer enum: - 1 allOf: - $ref: '#/components/schemas/AutomodActionType' format: int32 metadata: oneOf: - type: 'null' - $ref: '#/components/schemas/BlockMessageActionMetadata' required: - type EntityMetadataExternalResponse: type: object properties: location: type: string required: - location GuildWelcomeScreenResponse: type: object properties: description: type: - string - 'null' welcome_channels: type: array items: $ref: '#/components/schemas/GuildWelcomeScreenChannelResponse' required: - welcome_channels MentionSpamRuleResponse: type: object properties: id: $ref: '#/components/schemas/SnowflakeType' guild_id: $ref: '#/components/schemas/SnowflakeType' creator_id: $ref: '#/components/schemas/SnowflakeType' name: type: string event_type: $ref: '#/components/schemas/AutomodEventType' actions: type: array items: oneOf: - $ref: '#/components/schemas/BlockMessageActionResponse' - $ref: '#/components/schemas/FlagToChannelActionResponse' - $ref: '#/components/schemas/QuarantineUserActionResponse' - $ref: '#/components/schemas/UserCommunicationDisabledActionResponse' trigger_type: type: integer enum: - 5 allOf: - $ref: '#/components/schemas/AutomodTriggerType' format: int32 enabled: type: - boolean - 'null' exempt_roles: type: - array - 'null' items: $ref: '#/components/schemas/SnowflakeType' uniqueItems: true exempt_channels: type: - array - 'null' items: $ref: '#/components/schemas/SnowflakeType' uniqueItems: true trigger_metadata: $ref: '#/components/schemas/MentionSpamTriggerMetadataResponse' required: - id - guild_id - creator_id - name - event_type - actions - trigger_type - trigger_metadata ApplicationCommandOptionIntegerChoiceResponse: type: object properties: name: type: string name_localized: type: - string - 'null' name_localizations: type: - object - 'null' additionalProperties: type: string value: $ref: '#/components/schemas/Int53Type' required: - name - value ScheduledEventUserResponse: type: object properties: guild_scheduled_event_id: $ref: '#/components/schemas/SnowflakeType' user_id: $ref: '#/components/schemas/SnowflakeType' user: oneOf: - type: 'null' - $ref: '#/components/schemas/UserResponse' member: oneOf: - type: 'null' - $ref: '#/components/schemas/GuildMemberResponse' required: - guild_scheduled_event_id - user_id GuildTemplateResponse: type: object properties: code: type: string name: type: string description: type: - string - 'null' usage_count: type: integer format: int32 creator_id: $ref: '#/components/schemas/SnowflakeType' creator: oneOf: - type: 'null' - $ref: '#/components/schemas/UserResponse' created_at: type: string format: date-time updated_at: type: string format: date-time source_guild_id: $ref: '#/components/schemas/SnowflakeType' serialized_source_guild: $ref: '#/components/schemas/GuildTemplateSnapshotResponse' is_dirty: type: - boolean - 'null' required: - code - name - usage_count - creator_id - created_at - updated_at - source_guild_id - serialized_source_guild ApplicationCommandMentionableOptionResponse: type: object properties: type: type: integer enum: - 9 allOf: - $ref: '#/components/schemas/ApplicationCommandOptionType' format: int32 name: type: string name_localized: type: - string - 'null' name_localizations: type: - object - 'null' additionalProperties: type: string description: type: string description_localized: type: - string - 'null' description_localizations: type: - object - 'null' additionalProperties: type: string required: type: - boolean - 'null' required: - type - name - description GuildRoleResponse: type: object properties: id: $ref: '#/components/schemas/SnowflakeType' name: type: string description: type: - string - 'null' permissions: type: string position: type: integer format: int32 color: type: integer format: int32 hoist: type: boolean managed: type: boolean mentionable: type: boolean icon: type: - string - 'null' unicode_emoji: type: - string - 'null' tags: oneOf: - type: 'null' - $ref: '#/components/schemas/GuildRoleTagsResponse' required: - id - name - permissions - position - color - hoist - managed - mentionable ThreadSortOrder: type: integer oneOf: - title: LATEST_ACTIVITY description: Sort forum posts by activity const: 0 - title: CREATION_DATE description: Sort forum posts by creation time (from most recent to oldest) const: 1 format: int32 UpdateGuildOnboardingRequest: type: object properties: prompts: type: - array - 'null' items: $ref: '#/components/schemas/UpdateOnboardingPromptRequest' maxItems: 15 enabled: type: - boolean - 'null' default_channel_ids: type: - array - 'null' items: $ref: '#/components/schemas/SnowflakeType' maxItems: 500 uniqueItems: true mode: oneOf: - type: 'null' - $ref: '#/components/schemas/GuildOnboardingMode' GuildMemberResponse: type: object properties: avatar: type: - string - 'null' avatar_decoration_data: oneOf: - type: 'null' - $ref: '#/components/schemas/UserAvatarDecorationResponse' communication_disabled_until: type: - string - 'null' format: date-time flags: type: integer format: int32 joined_at: type: string format: date-time nick: type: - string - 'null' pending: type: boolean premium_since: type: - string - 'null' format: date-time roles: type: array items: $ref: '#/components/schemas/SnowflakeType' uniqueItems: true user: $ref: '#/components/schemas/UserResponse' mute: type: boolean deaf: type: boolean required: - flags - joined_at - pending - roles - user - mute - deaf GuildTemplateRoleResponse: type: object properties: id: type: integer format: int32 name: type: string permissions: type: string color: type: integer format: int32 hoist: type: boolean mentionable: type: boolean icon: type: - string - 'null' unicode_emoji: type: - string - 'null' required: - id - name - permissions - color - hoist - mentionable FlagToChannelAction: type: object properties: type: type: integer enum: - 2 allOf: - $ref: '#/components/schemas/AutomodActionType' format: int32 metadata: $ref: '#/components/schemas/FlagToChannelActionMetadata' required: - type - metadata Snowflake: type: string description: Discord unique ID represented as a string pattern: ^[0-9]+$ WelcomeMessageResponse: type: object properties: author_ids: type: array items: $ref: '#/components/schemas/SnowflakeType' message: type: string required: - author_ids - message UpdateOnboardingPromptRequest: type: object properties: title: type: string minLength: 1 maxLength: 100 options: type: array items: $ref: '#/components/schemas/OnboardingPromptOptionRequest' minItems: 1 maxItems: 50 single_select: type: - boolean - 'null' required: type: - boolean - 'null' in_onboarding: type: - boolean - 'null' type: oneOf: - type: 'null' - $ref: '#/components/schemas/OnboardingPromptType' id: $ref: '#/components/schemas/SnowflakeType' required: - title - options - id ApplicationCommandStringOptionResponse: type: object properties: type: type: integer enum: - 3 allOf: - $ref: '#/components/schemas/ApplicationCommandOptionType' format: int32 name: type: string name_localized: type: - string - 'null' name_localizations: type: - object - 'null' additionalProperties: type: string description: type: string description_localized: type: - string - 'null' description_localizations: type: - object - 'null' additionalProperties: type: string required: type: - boolean - 'null' autocomplete: type: - boolean - 'null' choices: type: - array - 'null' items: $ref: '#/components/schemas/ApplicationCommandOptionStringChoiceResponse' min_length: type: - integer - 'null' format: int32 max_length: type: - integer - 'null' format: int32 required: - type - name - description WidgetChannel: type: object properties: id: $ref: '#/components/schemas/SnowflakeType' name: type: string position: type: integer format: int32 required: - id - name - position GuildTemplateChannelTags: type: object properties: name: type: string emoji_id: oneOf: - type: 'null' - $ref: '#/components/schemas/SnowflakeType' emoji_name: type: - string - 'null' moderated: type: - boolean - 'null' required: - name ThreadAutoArchiveDuration: type: integer oneOf: - title: ONE_HOUR description: One hour const: 60 - title: ONE_DAY description: One day const: 1440 - title: THREE_DAY description: Three days const: 4320 - title: SEVEN_DAY description: Seven days const: 10080 format: int32 DefaultReactionEmojiResponse: type: object properties: emoji_id: oneOf: - type: 'null' - $ref: '#/components/schemas/SnowflakeType' emoji_name: type: - string - 'null' AutomodEventType: type: integer oneOf: - title: MESSAGE_SEND description: A user submitted a message to a channel const: 1 - title: GUILD_MEMBER_JOIN_OR_UPDATE description: A user is attempting to join the server or a member's properties were updated. const: 2 format: int32 QuarantineUserAction: type: object properties: type: type: integer enum: - 4 allOf: - $ref: '#/components/schemas/AutomodActionType' format: int32 metadata: oneOf: - type: 'null' - $ref: '#/components/schemas/QuarantineUserActionMetadata' required: - type FriendInviteResponse: type: object properties: type: oneOf: - type: 'null' - type: integer enum: - 2 allOf: - $ref: '#/components/schemas/InviteTypes' format: int32 code: type: string inviter: oneOf: - type: 'null' - $ref: '#/components/schemas/UserResponse' max_age: type: - integer - 'null' format: int32 created_at: type: - string - 'null' format: date-time expires_at: type: - string - 'null' format: date-time friends_count: type: - integer - 'null' format: int32 channel: oneOf: - type: 'null' - $ref: '#/components/schemas/InviteChannelResponse' is_contact: type: - boolean - 'null' uses: type: - integer - 'null' format: int32 max_uses: type: - integer - 'null' format: int32 flags: type: - integer - 'null' format: int32 required: - code OAuth2Scopes: type: string oneOf: - title: IDENTIFY description: allows /users/@me without email const: identify - title: EMAIL description: enables /users/@me to return an email const: email - title: CONNECTIONS description: allows /users/@me/connections to return linked third-party accounts const: connections - title: GUILDS description: allows /users/@me/guilds to return basic information about all of a user's guilds const: guilds - title: GUILDS_JOIN description: allows /guilds/{guild.id}/members/{user.id} to be used for joining users to a guild const: guilds.join - title: GUILDS_MEMBERS_READ description: allows /users/@me/guilds/{guild.id}/member to return a user's member information in a guild const: guilds.members.read - title: GDM_JOIN description: allows your app to join users to a group dm const: gdm.join - title: BOT description: for oauth2 bots, this puts the bot in the user's selected guild by default const: bot - title: RPC description: for local rpc server access, this allows you to control a user's local Discord client - requires Discord approval const: rpc - title: RPC_NOTIFICATIONS_READ description: for local rpc server access, this allows you to receive notifications pushed out to the user - requires Discord approval const: rpc.notifications.read - title: RPC_VOICE_READ description: for local rpc server access, this allows you to read a user's voice settings and listen for voice events - requires Discord approval const: rpc.voice.read - title: RPC_VOICE_WRITE description: for local rpc server access, this allows you to update a user's voice settings - requires Discord approval const: rpc.voice.write - title: RPC_VIDEO_READ description: for local rpc server access, this allows you to read a user's video status - requires Discord approval const: rpc.video.read - title: RPC_VIDEO_WRITE description: for local rpc server access, this allows you to update a user's video settings - requires Discord approval const: rpc.video.write - title: RPC_SCREENSHARE_READ description: for local rpc server access, this allows you to read a user's screenshare status- requires Discord approval const: rpc.screenshare.read - title: RPC_SCREENSHARE_WRITE description: for local rpc server access, this allows you to update a user's screenshare settings- requires Discord approval const: rpc.screenshare.write - title: RPC_ACTIVITIES_WRITE description: for local rpc server access, this allows you to update a user's activity - requires Discord approval const: rpc.activities.write - title: WEBHOOK_INCOMING description: this generates a webhook that is returned in the oauth token response for authorization code grants const: webhook.incoming - title: MESSAGES_READ description: for local rpc server api access, this allows you to read messages from all client channels (otherwise restricted to channels/guilds your app creates) const: messages.read - title: APPLICATIONS_BUILDS_UPLOAD description: allows your app to upload/update builds for a user's applications - requires Discord approval const: applications.builds.upload - title: APPLICATIONS_BUILDS_READ description: allows your app to read build data for a user's applications const: applications.builds.read - title: APPLICATIONS_COMMANDS description: allows your app to use commands in a guild const: applications.commands - title: APPLICATIONS_COMMANDS_PERMISSIONS_UPDATE description: allows your app to update permissions for its commands in a guild a user has permissions to const: applications.commands.permissions.update - title: APPLICATIONS_COMMANDS_UPDATE description: allows your app to update its commands using a Bearer token - client credentials grant only const: applications.commands.update - title: APPLICATIONS_STORE_UPDATE description: allows your app to read and update store data (SKUs, store listings, achievements, etc.) for a user's applications const: applications.store.update - title: APPLICATIONS_ENTITLEMENTS description: allows your app to read entitlements for a user's applications const: applications.entitlements - title: ACTIVITIES_READ description: allows your app to fetch data from a user's "Now Playing/Recently Played" list - requires Discord approval const: activities.read - title: ACTIVITIES_WRITE description: allows your app to update a user's activity - requires Discord approval (NOT REQUIRED FOR GAMESDK ACTIVITY MANAGER) const: activities.write - title: RELATIONSHIPS_READ description: allows your app to know a user's friends and implicit relationships - requires Discord approval const: relationships.read - title: VOICE description: allows your app to connect to voice on user's behalf and see all the voice members - requires Discord approval const: voice - title: DM_CHANNELS_READ description: allows your app to see information about the user's DMs and group DMs - requires Discord approval const: dm_channels.read - title: ROLE_CONNECTIONS_WRITE description: allows your app to update a user's connection and metadata for the app const: role_connections.write - title: OPENID description: for OpenID Connect, this allows your app to receive user id and basic profile information const: openid VanityURLResponse: type: object properties: code: type: - string - 'null' uses: type: integer format: int32 error: oneOf: - type: 'null' - $ref: '#/components/schemas/VanityURLErrorResponse' required: - uses ApplicationCommandBooleanOptionResponse: type: object properties: type: type: integer enum: - 5 allOf: - $ref: '#/components/schemas/ApplicationCommandOptionType' format: int32 name: type: string name_localized: type: - string - 'null' name_localizations: type: - object - 'null' additionalProperties: type: string description: type: string description_localized: type: - string - 'null' description_localizations: type: - object - 'null' additionalProperties: type: string required: type: - boolean - 'null' required: - type - name - description UserNotificationSettings: type: integer oneOf: - title: ALL_MESSAGES description: members will receive notifications for all messages by default const: 0 - title: ONLY_MENTIONS description: members will receive notifications only for messages that @mention them by default const: 1 format: int32 VideoQualityModes: type: integer oneOf: - title: AUTO description: Discord chooses the quality for optimal performance const: 1 - title: FULL description: 720p const: 2 format: int32 PremiumGuildTiers: type: integer oneOf: - title: NONE description: Guild has not unlocked any Server Boost perks const: 0 - title: TIER_1 description: Guild has unlocked Server Boost level 1 perks const: 1 - title: TIER_2 description: Guild has unlocked Server Boost level 2 perks const: 2 - title: TIER_3 description: Guild has unlocked Server Boost level 3 perks const: 3 format: int32 GuildOnboardingMode: type: integer oneOf: - title: ONBOARDING_DEFAULT description: Only Default Channels considered in constraints const: 0 - title: ONBOARDING_ADVANCED description: Default Channels and Onboarding Prompts considered in constraints const: 1 format: int32 InviteTargetTypes: type: integer oneOf: - title: STREAM const: 1 - title: EMBEDDED_APPLICATION const: 2 - title: ROLE_SUBSCRIPTIONS_PURCHASE const: 3 format: int32 ForumTagResponse: type: object properties: id: $ref: '#/components/schemas/SnowflakeType' name: type: string moderated: type: boolean emoji_id: oneOf: - type: 'null' - $ref: '#/components/schemas/SnowflakeType' emoji_name: type: - string - 'null' required: - id - name - moderated ApplicationCommandNumberOptionResponse: type: object properties: type: type: integer enum: - 10 allOf: - $ref: '#/components/schemas/ApplicationCommandOptionType' format: int32 name: type: string name_localized: type: - string - 'null' name_localizations: type: - object - 'null' additionalProperties: type: string description: type: string description_localized: type: - string - 'null' description_localizations: type: - object - 'null' additionalProperties: type: string required: type: - boolean - 'null' autocomplete: type: - boolean - 'null' choices: type: - array - 'null' items: $ref: '#/components/schemas/ApplicationCommandOptionNumberChoiceResponse' min_value: type: - number - 'null' format: double max_value: type: - number - 'null' format: double required: - type - name - description VerificationLevels: type: integer oneOf: - title: NONE description: unrestricted const: 0 - title: LOW description: must have verified email on account const: 1 - title: MEDIUM description: must be registered on Discord for longer than 5 minutes const: 2 - title: HIGH description: must be a member of the server for longer than 10 minutes const: 3 - title: VERY_HIGH description: must have a verified phone number const: 4 format: int32 BlockMessageActionMetadataResponse: type: object properties: custom_message: type: - string - 'null' GuildScheduledEventEntityTypes: type: integer oneOf: - title: NONE const: 0 - title: STAGE_INSTANCE const: 1 - title: VOICE const: 2 - title: EXTERNAL const: 3 format: int32 InviteTypes: type: integer oneOf: - title: GUILD const: 0 - title: GROUP_DM const: 1 - title: FRIEND const: 2 format: int32 DefaultKeywordListUpsertRequestPartial: type: object properties: name: type: string maxLength: 100 event_type: $ref: '#/components/schemas/AutomodEventType' actions: type: - array - 'null' items: oneOf: - $ref: '#/components/schemas/BlockMessageAction' - $ref: '#/components/schemas/FlagToChannelAction' - $ref: '#/components/schemas/QuarantineUserAction' - $ref: '#/components/schemas/UserCommunicationDisabledAction' minItems: 1 maxItems: 5 enabled: type: - boolean - 'null' exempt_roles: type: - array - 'null' items: $ref: '#/components/schemas/SnowflakeType' maxItems: 20 uniqueItems: true exempt_channels: type: - array - 'null' items: $ref: '#/components/schemas/SnowflakeType' maxItems: 50 uniqueItems: true trigger_type: type: integer enum: - 4 allOf: - $ref: '#/components/schemas/AutomodTriggerType' format: int32 trigger_metadata: $ref: '#/components/schemas/DefaultKeywordListTriggerMetadata' PartialDiscordIntegrationResponse: type: object properties: id: $ref: '#/components/schemas/SnowflakeType' type: type: string enum: - discord allOf: - $ref: '#/components/schemas/IntegrationTypes' name: type: - string - 'null' account: oneOf: - type: 'null' - $ref: '#/components/schemas/AccountResponse' application_id: $ref: '#/components/schemas/SnowflakeType' required: - id - type - application_id EntityMetadataVoiceResponse: type: object properties: {} AutomodKeywordPresetType: type: integer oneOf: - title: PROFANITY description: Words and phrases that may be considered profanity const: 1 - title: SEXUAL_CONTENT description: Words and phrases that may be considered as sexual content const: 2 - title: SLURS description: Words and phrases that may be considered slurs and hate speech const: 3 format: int32 ChannelPermissionOverwriteResponse: type: object properties: id: $ref: '#/components/schemas/SnowflakeType' type: $ref: '#/components/schemas/ChannelPermissionOverwrites' allow: type: string deny: type: string required: - id - type - allow - deny ApplicationCommandRoleOptionResponse: type: object properties: type: type: integer enum: - 8 allOf: - $ref: '#/components/schemas/ApplicationCommandOptionType' format: int32 name: type: string name_localized: type: - string - 'null' name_localizations: type: - object - 'null' additionalProperties: type: string description: type: string description_localized: type: - string - 'null' description_localizations: type: - object - 'null' additionalProperties: type: string required: type: - boolean - 'null' required: - type - name - description KeywordUpsertRequestPartial: type: object properties: name: type: string maxLength: 100 event_type: $ref: '#/components/schemas/AutomodEventType' actions: type: - array - 'null' items: oneOf: - $ref: '#/components/schemas/BlockMessageAction' - $ref: '#/components/schemas/FlagToChannelAction' - $ref: '#/components/schemas/QuarantineUserAction' - $ref: '#/components/schemas/UserCommunicationDisabledAction' minItems: 1 maxItems: 5 enabled: type: - boolean - 'null' exempt_roles: type: - array - 'null' items: $ref: '#/components/schemas/SnowflakeType' maxItems: 20 uniqueItems: true exempt_channels: type: - array - 'null' items: $ref: '#/components/schemas/SnowflakeType' maxItems: 50 uniqueItems: true trigger_type: type: integer enum: - 1 allOf: - $ref: '#/components/schemas/AutomodTriggerType' format: int32 trigger_metadata: oneOf: - type: 'null' - $ref: '#/components/schemas/KeywordTriggerMetadata' StageScheduledEventPatchRequestPartial: type: object properties: status: oneOf: - type: 'null' - $ref: '#/components/schemas/GuildScheduledEventStatuses' name: type: string maxLength: 100 description: type: - string - 'null' maxLength: 1000 image: type: - string - 'null' contentEncoding: base64 scheduled_start_time: type: string format: date-time scheduled_end_time: type: - string - 'null' format: date-time entity_type: oneOf: - type: 'null' - type: integer enum: - 1 allOf: - $ref: '#/components/schemas/GuildScheduledEventEntityTypes' format: int32 privacy_level: $ref: '#/components/schemas/GuildScheduledEventPrivacyLevels' channel_id: oneOf: - type: 'null' - $ref: '#/components/schemas/SnowflakeType' entity_metadata: oneOf: - type: 'null' - $ref: '#/components/schemas/EntityMetadataStageInstance' ErrorDetails: oneOf: - type: object additionalProperties: $ref: '#/components/schemas/ErrorDetails' - $ref: '#/components/schemas/InnerErrors' ThreadMemberResponse: type: object properties: id: $ref: '#/components/schemas/SnowflakeType' user_id: $ref: '#/components/schemas/SnowflakeType' join_timestamp: type: string format: date-time flags: type: integer format: int32 member: oneOf: - type: 'null' - $ref: '#/components/schemas/GuildMemberResponse' required: - id - user_id - join_timestamp - flags FlagToChannelActionMetadata: type: object properties: channel_id: $ref: '#/components/schemas/SnowflakeType' required: - channel_id GuildRoleTagsResponse: type: object properties: premium_subscriber: type: 'null' bot_id: oneOf: - type: 'null' - $ref: '#/components/schemas/SnowflakeType' integration_id: oneOf: - type: 'null' - $ref: '#/components/schemas/SnowflakeType' subscription_listing_id: oneOf: - type: 'null' - $ref: '#/components/schemas/SnowflakeType' available_for_purchase: type: 'null' guild_connections: type: 'null' WidgetUserDiscriminator: type: string oneOf: - title: ZEROES const: '0000' ApplicationCommandOptionType: type: integer oneOf: - title: SUB_COMMAND description: A sub-action within a command or group const: 1 - title: SUB_COMMAND_GROUP description: A group of subcommands const: 2 - title: STRING description: A string option const: 3 - title: INTEGER description: An integer option. Any integer between -2^53 and 2^53 is a valid value const: 4 - title: BOOLEAN description: A boolean option const: 5 - title: USER description: A snowflake option that represents a User const: 6 - title: CHANNEL description: A snowflake option that represents a Channel. Includes all channel types and categories const: 7 - title: ROLE description: A snowflake option that represents a Role const: 8 - title: MENTIONABLE description: A snowflake option that represents anything you can mention const: 9 - title: NUMBER description: A number option. Any double between -2^53 and 2^53 is a valid value const: 10 - title: ATTACHMENT description: An attachment option const: 11 format: int32 CreateGuildRequestChannelItem: type: object properties: type: oneOf: - type: 'null' - type: integer enum: - 0 - 2 - 4 allOf: - $ref: '#/components/schemas/ChannelTypes' format: int32 name: type: string minLength: 1 maxLength: 100 position: type: - integer - 'null' minimum: 0 format: int32 topic: type: - string - 'null' minLength: 0 maxLength: 4096 bitrate: type: - integer - 'null' minimum: 8000 format: int32 user_limit: type: - integer - 'null' minimum: 0 format: int32 nsfw: type: - boolean - 'null' rate_limit_per_user: type: - integer - 'null' minimum: 0 maximum: 21600 parent_id: oneOf: - type: 'null' - $ref: '#/components/schemas/SnowflakeType' permission_overwrites: type: - array - 'null' items: $ref: '#/components/schemas/ChannelPermissionOverwriteRequest' maxItems: 100 rtc_region: type: - string - 'null' video_quality_mode: oneOf: - type: 'null' - $ref: '#/components/schemas/VideoQualityModes' default_auto_archive_duration: oneOf: - type: 'null' - $ref: '#/components/schemas/ThreadAutoArchiveDuration' default_reaction_emoji: oneOf: - type: 'null' - $ref: '#/components/schemas/UpdateDefaultReactionEmojiRequest' default_thread_rate_limit_per_user: type: - integer - 'null' minimum: 0 maximum: 21600 default_sort_order: oneOf: - type: 'null' - $ref: '#/components/schemas/ThreadSortOrder' default_forum_layout: oneOf: - type: 'null' - $ref: '#/components/schemas/ForumLayout' id: oneOf: - type: 'null' - $ref: '#/components/schemas/SnowflakeType' available_tags: type: - array - 'null' items: $ref: '#/components/schemas/CreateOrUpdateThreadTagRequest' maxItems: 20 required: - name UserCommunicationDisabledActionMetadata: type: object properties: duration_seconds: type: - integer - 'null' minimum: 0 maximum: 2419200 ThreadResponse: type: object properties: id: $ref: '#/components/schemas/SnowflakeType' type: type: integer enum: - 10 - 11 - 12 allOf: - $ref: '#/components/schemas/ChannelTypes' format: int32 last_message_id: oneOf: - type: 'null' - $ref: '#/components/schemas/SnowflakeType' flags: type: integer format: int32 last_pin_timestamp: type: - string - 'null' format: date-time guild_id: $ref: '#/components/schemas/SnowflakeType' name: type: string parent_id: oneOf: - type: 'null' - $ref: '#/components/schemas/SnowflakeType' rate_limit_per_user: type: - integer - 'null' format: int32 bitrate: type: - integer - 'null' format: int32 user_limit: type: - integer - 'null' format: int32 rtc_region: type: - string - 'null' video_quality_mode: oneOf: - type: 'null' - $ref: '#/components/schemas/VideoQualityModes' permissions: type: - string - 'null' owner_id: $ref: '#/components/schemas/SnowflakeType' thread_metadata: oneOf: - type: 'null' - $ref: '#/components/schemas/ThreadMetadataResponse' message_count: type: integer format: int32 member_count: type: integer format: int32 total_message_sent: type: integer format: int32 applied_tags: type: - array - 'null' items: $ref: '#/components/schemas/SnowflakeType' member: oneOf: - type: 'null' - $ref: '#/components/schemas/ThreadMemberResponse' required: - id - type - flags - guild_id - name - owner_id - message_count - member_count - total_message_sent GuildPatchRequestPartial: type: object properties: name: type: string minLength: 2 maxLength: 100 description: type: - string - 'null' minLength: 0 maxLength: 120 region: type: - string - 'null' icon: type: - string - 'null' contentEncoding: base64 verification_level: oneOf: - type: 'null' - $ref: '#/components/schemas/VerificationLevels' default_message_notifications: oneOf: - type: 'null' - $ref: '#/components/schemas/UserNotificationSettings' explicit_content_filter: oneOf: - type: 'null' - $ref: '#/components/schemas/GuildExplicitContentFilterTypes' preferred_locale: oneOf: - type: 'null' - $ref: '#/components/schemas/AvailableLocalesEnum' afk_timeout: oneOf: - type: 'null' - $ref: '#/components/schemas/AfkTimeouts' afk_channel_id: oneOf: - type: 'null' - $ref: '#/components/schemas/SnowflakeType' system_channel_id: oneOf: - type: 'null' - $ref: '#/components/schemas/SnowflakeType' owner_id: $ref: '#/components/schemas/SnowflakeType' splash: type: - string - 'null' contentEncoding: base64 banner: type: - string - 'null' contentEncoding: base64 system_channel_flags: type: - integer - 'null' features: type: - array - 'null' items: type: - string - 'null' maxLength: 152133 maxItems: 1521 uniqueItems: true discovery_splash: type: - string - 'null' contentEncoding: base64 home_header: type: - string - 'null' contentEncoding: base64 rules_channel_id: oneOf: - type: 'null' - $ref: '#/components/schemas/SnowflakeType' safety_alerts_channel_id: oneOf: - type: 'null' - $ref: '#/components/schemas/SnowflakeType' public_updates_channel_id: oneOf: - type: 'null' - $ref: '#/components/schemas/SnowflakeType' premium_progress_bar_enabled: type: - boolean - 'null' MLSpamTriggerMetadata: type: object properties: {} NewMemberActionResponse: type: object properties: channel_id: $ref: '#/components/schemas/SnowflakeType' action_type: $ref: '#/components/schemas/NewMemberActionType' title: type: string description: type: string emoji: oneOf: - type: 'null' - $ref: '#/components/schemas/SettingsEmojiResponse' icon: type: - string - 'null' required: - channel_id - action_type - title - description GuildStickerResponse: type: object properties: id: $ref: '#/components/schemas/SnowflakeType' name: type: string tags: type: string type: type: integer enum: - 2 allOf: - $ref: '#/components/schemas/StickerTypes' format: int32 format_type: oneOf: - type: 'null' - $ref: '#/components/schemas/StickerFormatTypes' description: type: - string - 'null' available: type: boolean guild_id: $ref: '#/components/schemas/SnowflakeType' user: oneOf: - type: 'null' - $ref: '#/components/schemas/UserResponse' required: - id - name - tags - type - available - guild_id UserCommunicationDisabledActionResponse: type: object properties: type: type: integer enum: - 3 allOf: - $ref: '#/components/schemas/AutomodActionType' format: int32 metadata: $ref: '#/components/schemas/UserCommunicationDisabledActionMetadataResponse' required: - type - metadata InnerErrors: type: object properties: _errors: type: array description: The list of errors for this field items: $ref: '#/components/schemas/Error' additionalProperties: false required: - _errors InviteGuildResponse: type: object properties: id: $ref: '#/components/schemas/SnowflakeType' name: type: string splash: type: - string - 'null' banner: type: - string - 'null' description: type: - string - 'null' icon: type: - string - 'null' features: type: array items: $ref: '#/components/schemas/GuildFeatures' uniqueItems: true verification_level: oneOf: - type: 'null' - $ref: '#/components/schemas/VerificationLevels' vanity_url_code: type: - string - 'null' nsfw_level: oneOf: - type: 'null' - $ref: '#/components/schemas/GuildNSFWContentLevel' nsfw: type: - boolean - 'null' premium_subscription_count: type: - integer - 'null' format: int32 required: - id - name - features BlockMessageActionResponse: type: object properties: type: type: integer enum: - 1 allOf: - $ref: '#/components/schemas/AutomodActionType' format: int32 metadata: $ref: '#/components/schemas/BlockMessageActionMetadataResponse' required: - type - metadata GuildExplicitContentFilterTypes: type: integer oneOf: - title: DISABLED description: media content will not be scanned const: 0 - title: MEMBERS_WITHOUT_ROLES description: media content sent by members without roles will be scanned const: 1 - title: ALL_MEMBERS description: media content sent by all members will be scanned const: 2 format: int32 GuildFeatures: type: string oneOf: - title: ANIMATED_BANNER description: guild has access to set an animated guild banner image const: ANIMATED_BANNER - title: ANIMATED_ICON description: guild has access to set an animated guild icon const: ANIMATED_ICON - title: APPLICATION_COMMAND_PERMISSIONS_V2 description: guild is using the old permissions configuration behavior const: APPLICATION_COMMAND_PERMISSIONS_V2 - title: AUTO_MODERATION description: guild has set up auto moderation rules const: AUTO_MODERATION - title: BANNER description: guild has access to set a guild banner image const: BANNER - title: COMMUNITY description: guild can enable welcome screen, Membership Screening, stage channels and discovery, and receives community updates const: COMMUNITY - title: CREATOR_MONETIZABLE_PROVISIONAL description: guild has enabled monetization const: CREATOR_MONETIZABLE_PROVISIONAL - title: CREATOR_STORE_PAGE description: guild has enabled the role subscription promo page const: CREATOR_STORE_PAGE - title: DEVELOPER_SUPPORT_SERVER description: guild has been set as a support server on the App Directory const: DEVELOPER_SUPPORT_SERVER - title: DISCOVERABLE description: guild is able to be discovered in the directory const: DISCOVERABLE - title: FEATURABLE description: guild is able to be featured in the directory const: FEATURABLE - title: INVITES_DISABLED description: guild has paused invites, preventing new users from joining const: INVITES_DISABLED - title: INVITE_SPLASH description: guild has access to set an invite splash background const: INVITE_SPLASH - title: MEMBER_VERIFICATION_GATE_ENABLED description: guild has enabled Membership Screening const: MEMBER_VERIFICATION_GATE_ENABLED - title: MORE_STICKERS description: guild has increased custom sticker slots const: MORE_STICKERS - title: NEWS description: guild has access to create announcement channels const: NEWS - title: PARTNERED description: guild is partnered const: PARTNERED - title: PREVIEW_ENABLED description: guild can be previewed before joining via Membership Screening or the directory const: PREVIEW_ENABLED - title: RAID_ALERTS_DISABLED description: guild has disabled activity alerts in the configured safety alerts channel const: RAID_ALERTS_DISABLED - title: ROLE_ICONS description: guild is able to set role icons const: ROLE_ICONS - title: ROLE_SUBSCRIPTIONS_AVAILABLE_FOR_PURCHASE description: guild has role subscriptions that can be purchased const: ROLE_SUBSCRIPTIONS_AVAILABLE_FOR_PURCHASE - title: ROLE_SUBSCRIPTIONS_ENABLED description: guild has enabled role subscriptions const: ROLE_SUBSCRIPTIONS_ENABLED - title: TICKETED_EVENTS_ENABLED description: guild has enabled ticketed events const: TICKETED_EVENTS_ENABLED - title: VANITY_URL description: guild has access to set a vanity URL const: VANITY_URL - title: VERIFIED description: guild is verified const: VERIFIED - title: VIP_REGIONS description: guild has access to set 384kbps bitrate in voice (previously VIP voice servers) const: VIP_REGIONS - title: WELCOME_SCREEN_ENABLED description: guild has enabled the welcome screen const: WELCOME_SCREEN_ENABLED ExternalScheduledEventPatchRequestPartial: type: object properties: status: oneOf: - type: 'null' - $ref: '#/components/schemas/GuildScheduledEventStatuses' name: type: string maxLength: 100 description: type: - string - 'null' maxLength: 1000 image: type: - string - 'null' contentEncoding: base64 scheduled_start_time: type: string format: date-time scheduled_end_time: type: - string - 'null' format: date-time entity_type: oneOf: - type: 'null' - type: integer enum: - 3 allOf: - $ref: '#/components/schemas/GuildScheduledEventEntityTypes' format: int32 privacy_level: $ref: '#/components/schemas/GuildScheduledEventPrivacyLevels' channel_id: oneOf: - type: 'null' - $ref: '#/components/schemas/SnowflakeType' entity_metadata: $ref: '#/components/schemas/EntityMetadataExternal' GuildNSFWContentLevel: type: integer oneOf: - title: DEFAULT const: 0 - title: EXPLICIT const: 1 - title: SAFE const: 2 - title: AGE_RESTRICTED const: 3 format: int32 InviteStageInstanceResponse: type: object properties: topic: type: string participant_count: type: - integer - 'null' format: int32 speaker_count: type: - integer - 'null' format: int32 members: type: - array - 'null' items: $ref: '#/components/schemas/GuildMemberResponse' required: - topic ApplicationOAuth2InstallParamsResponse: type: object properties: scopes: type: array items: type: string enum: - applications.commands - bot allOf: - $ref: '#/components/schemas/OAuth2Scopes' uniqueItems: true permissions: type: string required: - scopes - permissions AuditLogActionTypes: type: integer oneOf: - title: GUILD_UPDATE const: 1 - title: CHANNEL_CREATE const: 10 - title: CHANNEL_UPDATE const: 11 - title: CHANNEL_DELETE const: 12 - title: CHANNEL_OVERWRITE_CREATE const: 13 - title: CHANNEL_OVERWRITE_UPDATE const: 14 - title: CHANNEL_OVERWRITE_DELETE const: 15 - title: MEMBER_KICK const: 20 - title: MEMBER_PRUNE const: 21 - title: MEMBER_BAN_ADD const: 22 - title: MEMBER_BAN_REMOVE const: 23 - title: MEMBER_UPDATE const: 24 - title: MEMBER_ROLE_UPDATE const: 25 - title: MEMBER_MOVE const: 26 - title: MEMBER_DISCONNECT const: 27 - title: BOT_ADD const: 28 - title: ROLE_CREATE const: 30 - title: ROLE_UPDATE const: 31 - title: ROLE_DELETE const: 32 - title: INVITE_CREATE const: 40 - title: INVITE_UPDATE const: 41 - title: INVITE_DELETE const: 42 - title: WEBHOOK_CREATE const: 50 - title: WEBHOOK_UPDATE const: 51 - title: WEBHOOK_DELETE const: 52 - title: EMOJI_CREATE const: 60 - title: EMOJI_UPDATE const: 61 - title: EMOJI_DELETE const: 62 - title: MESSAGE_DELETE const: 72 - title: MESSAGE_BULK_DELETE const: 73 - title: MESSAGE_PIN const: 74 - title: MESSAGE_UNPIN const: 75 - title: INTEGRATION_CREATE const: 80 - title: INTEGRATION_UPDATE const: 81 - title: INTEGRATION_DELETE const: 82 - title: STAGE_INSTANCE_CREATE const: 83 - title: STAGE_INSTANCE_UPDATE const: 84 - title: STAGE_INSTANCE_DELETE const: 85 - title: STICKER_CREATE const: 90 - title: STICKER_UPDATE const: 91 - title: STICKER_DELETE const: 92 - title: GUILD_SCHEDULED_EVENT_CREATE const: 100 - title: GUILD_SCHEDULED_EVENT_UPDATE const: 101 - title: GUILD_SCHEDULED_EVENT_DELETE const: 102 - title: THREAD_CREATE const: 110 - title: THREAD_UPDATE const: 111 - title: THREAD_DELETE const: 112 - title: APPLICATION_COMMAND_PERMISSION_UPDATE const: 121 - title: SOUNDBOARD_SOUND_CREATE const: 130 - title: SOUNDBOARD_SOUND_UPDATE const: 131 - title: SOUNDBOARD_SOUND_DELETE const: 132 - title: AUTO_MODERATION_RULE_CREATE const: 140 - title: AUTO_MODERATION_RULE_UPDATE const: 141 - title: AUTO_MODERATION_RULE_DELETE const: 142 - title: AUTO_MODERATION_BLOCK_MESSAGE const: 143 - title: AUTO_MODERATION_FLAG_TO_CHANNEL const: 144 - title: AUTO_MODERATION_USER_COMM_DISABLED const: 145 - title: AUTO_MODERATION_QUARANTINE_USER const: 146 - title: CREATOR_MONETIZATION_REQUEST_CREATED const: 150 - title: CREATOR_MONETIZATION_TERMS_ACCEPTED const: 151 - title: ONBOARDING_PROMPT_CREATE const: 163 - title: ONBOARDING_PROMPT_UPDATE const: 164 - title: ONBOARDING_PROMPT_DELETE const: 165 - title: ONBOARDING_CREATE const: 166 - title: ONBOARDING_UPDATE const: 167 - title: GUILD_HOME_FEATURE_ITEM const: 171 - title: GUILD_HOME_REMOVE_ITEM const: 172 - title: HARMFUL_LINKS_BLOCKED_MESSAGE const: 180 - title: HOME_SETTINGS_CREATE const: 190 - title: HOME_SETTINGS_UPDATE const: 191 - title: VOICE_CHANNEL_STATUS_CREATE const: 192 - title: VOICE_CHANNEL_STATUS_DELETE const: 193 format: int32 PrivateGroupChannelResponse: type: object properties: id: $ref: '#/components/schemas/SnowflakeType' type: type: integer enum: - 3 allOf: - $ref: '#/components/schemas/ChannelTypes' format: int32 last_message_id: oneOf: - type: 'null' - $ref: '#/components/schemas/SnowflakeType' flags: type: integer format: int32 last_pin_timestamp: type: - string - 'null' format: date-time recipients: type: array items: $ref: '#/components/schemas/UserResponse' name: type: - string - 'null' icon: type: - string - 'null' owner_id: oneOf: - type: 'null' - $ref: '#/components/schemas/SnowflakeType' managed: type: - boolean - 'null' application_id: oneOf: - type: 'null' - $ref: '#/components/schemas/SnowflakeType' required: - id - type - flags - recipients GuildTemplateSnapshotResponse: type: object properties: name: type: string description: type: - string - 'null' region: type: - string - 'null' verification_level: $ref: '#/components/schemas/VerificationLevels' default_message_notifications: $ref: '#/components/schemas/UserNotificationSettings' explicit_content_filter: $ref: '#/components/schemas/GuildExplicitContentFilterTypes' preferred_locale: $ref: '#/components/schemas/AvailableLocalesEnum' afk_channel_id: oneOf: - type: 'null' - $ref: '#/components/schemas/SnowflakeType' afk_timeout: $ref: '#/components/schemas/AfkTimeouts' system_channel_id: oneOf: - type: 'null' - $ref: '#/components/schemas/SnowflakeType' system_channel_flags: type: integer format: int32 roles: type: array items: $ref: '#/components/schemas/GuildTemplateRoleResponse' channels: type: array items: $ref: '#/components/schemas/GuildTemplateChannelResponse' required: - name - verification_level - default_message_notifications - explicit_content_filter - preferred_locale - afk_timeout - system_channel_flags - roles - channels ExternalConnectionIntegrationResponse: type: object properties: type: type: string enum: - twitch - youtube allOf: - $ref: '#/components/schemas/IntegrationTypes' name: type: - string - 'null' account: oneOf: - type: 'null' - $ref: '#/components/schemas/AccountResponse' enabled: type: - boolean - 'null' id: type: string user: $ref: '#/components/schemas/UserResponse' revoked: type: - boolean - 'null' expire_behavior: oneOf: - type: 'null' - $ref: '#/components/schemas/IntegrationExpireBehaviorTypes' expire_grace_period: oneOf: - type: 'null' - $ref: '#/components/schemas/IntegrationExpireGracePeriodTypes' subscriber_count: type: - integer - 'null' format: int32 synced_at: type: - string - 'null' format: date-time role_id: oneOf: - type: 'null' - $ref: '#/components/schemas/SnowflakeType' syncing: type: - boolean - 'null' enable_emoticons: type: - boolean - 'null' required: - type - id - user ApplicationCommandChannelOptionResponse: type: object properties: type: type: integer enum: - 7 allOf: - $ref: '#/components/schemas/ApplicationCommandOptionType' format: int32 name: type: string name_localized: type: - string - 'null' name_localizations: type: - object - 'null' additionalProperties: type: string description: type: string description_localized: type: - string - 'null' description_localizations: type: - object - 'null' additionalProperties: type: string required: type: - boolean - 'null' channel_types: type: - array - 'null' items: $ref: '#/components/schemas/ChannelTypes' uniqueItems: true required: - type - name - description MLSpamUpsertRequestPartial: type: object properties: name: type: string maxLength: 100 event_type: $ref: '#/components/schemas/AutomodEventType' actions: type: - array - 'null' items: oneOf: - $ref: '#/components/schemas/BlockMessageAction' - $ref: '#/components/schemas/FlagToChannelAction' - $ref: '#/components/schemas/QuarantineUserAction' - $ref: '#/components/schemas/UserCommunicationDisabledAction' minItems: 1 maxItems: 5 enabled: type: - boolean - 'null' exempt_roles: type: - array - 'null' items: $ref: '#/components/schemas/SnowflakeType' maxItems: 20 uniqueItems: true exempt_channels: type: - array - 'null' items: $ref: '#/components/schemas/SnowflakeType' maxItems: 50 uniqueItems: true trigger_type: type: integer enum: - 3 allOf: - $ref: '#/components/schemas/AutomodTriggerType' format: int32 trigger_metadata: oneOf: - type: 'null' - $ref: '#/components/schemas/MLSpamTriggerMetadata' MLSpamRuleResponse: type: object properties: id: $ref: '#/components/schemas/SnowflakeType' guild_id: $ref: '#/components/schemas/SnowflakeType' creator_id: $ref: '#/components/schemas/SnowflakeType' name: type: string event_type: $ref: '#/components/schemas/AutomodEventType' actions: type: array items: oneOf: - $ref: '#/components/schemas/BlockMessageActionResponse' - $ref: '#/components/schemas/FlagToChannelActionResponse' - $ref: '#/components/schemas/QuarantineUserActionResponse' - $ref: '#/components/schemas/UserCommunicationDisabledActionResponse' trigger_type: type: integer enum: - 3 allOf: - $ref: '#/components/schemas/AutomodTriggerType' format: int32 enabled: type: - boolean - 'null' exempt_roles: type: - array - 'null' items: $ref: '#/components/schemas/SnowflakeType' uniqueItems: true exempt_channels: type: - array - 'null' items: $ref: '#/components/schemas/SnowflakeType' uniqueItems: true trigger_metadata: $ref: '#/components/schemas/MLSpamTriggerMetadataResponse' required: - id - guild_id - creator_id - name - event_type - actions - trigger_type - trigger_metadata ExternalScheduledEventCreateRequest: type: object properties: name: type: string maxLength: 100 description: type: - string - 'null' maxLength: 1000 image: type: - string - 'null' contentEncoding: base64 scheduled_start_time: type: string format: date-time scheduled_end_time: type: - string - 'null' format: date-time privacy_level: $ref: '#/components/schemas/GuildScheduledEventPrivacyLevels' entity_type: type: integer enum: - 3 allOf: - $ref: '#/components/schemas/GuildScheduledEventEntityTypes' format: int32 channel_id: oneOf: - type: 'null' - $ref: '#/components/schemas/SnowflakeType' entity_metadata: $ref: '#/components/schemas/EntityMetadataExternal' required: - name - scheduled_start_time - privacy_level - entity_type - entity_metadata UserAvatarDecorationResponse: type: object properties: {} IntegrationApplicationResponse: type: object properties: id: $ref: '#/components/schemas/SnowflakeType' name: type: string icon: type: - string - 'null' description: type: string type: oneOf: - type: 'null' - $ref: '#/components/schemas/ApplicationTypes' cover_image: type: - string - 'null' primary_sku_id: oneOf: - type: 'null' - $ref: '#/components/schemas/SnowflakeType' bot: oneOf: - type: 'null' - $ref: '#/components/schemas/UserResponse' required: - id - name - description ApplicationCommandSubcommandGroupOptionResponse: type: object properties: type: type: integer enum: - 2 allOf: - $ref: '#/components/schemas/ApplicationCommandOptionType' format: int32 name: type: string name_localized: type: - string - 'null' name_localizations: type: - object - 'null' additionalProperties: type: string description: type: string description_localized: type: - string - 'null' description_localizations: type: - object - 'null' additionalProperties: type: string required: type: - boolean - 'null' options: type: - array - 'null' items: $ref: '#/components/schemas/ApplicationCommandSubcommandOptionResponse' required: - type - name - description CreateGuildChannelRequest: type: object properties: type: oneOf: - type: 'null' - type: integer enum: - 0 - 2 - 4 - 5 - 13 - 14 - 15 allOf: - $ref: '#/components/schemas/ChannelTypes' format: int32 name: type: string minLength: 1 maxLength: 100 position: type: - integer - 'null' minimum: 0 format: int32 topic: type: - string - 'null' minLength: 0 maxLength: 4096 bitrate: type: - integer - 'null' minimum: 8000 format: int32 user_limit: type: - integer - 'null' minimum: 0 format: int32 nsfw: type: - boolean - 'null' rate_limit_per_user: type: - integer - 'null' minimum: 0 maximum: 21600 parent_id: oneOf: - type: 'null' - $ref: '#/components/schemas/SnowflakeType' permission_overwrites: type: - array - 'null' items: $ref: '#/components/schemas/ChannelPermissionOverwriteRequest' maxItems: 100 rtc_region: type: - string - 'null' video_quality_mode: oneOf: - type: 'null' - $ref: '#/components/schemas/VideoQualityModes' default_auto_archive_duration: oneOf: - type: 'null' - $ref: '#/components/schemas/ThreadAutoArchiveDuration' default_reaction_emoji: oneOf: - type: 'null' - $ref: '#/components/schemas/UpdateDefaultReactionEmojiRequest' default_thread_rate_limit_per_user: type: - integer - 'null' minimum: 0 maximum: 21600 default_sort_order: oneOf: - type: 'null' - $ref: '#/components/schemas/ThreadSortOrder' default_forum_layout: oneOf: - type: 'null' - $ref: '#/components/schemas/ForumLayout' available_tags: type: - array - 'null' items: oneOf: - type: 'null' - $ref: '#/components/schemas/CreateOrUpdateThreadTagRequest' maxItems: 20 required: - name UserCommunicationDisabledAction: type: object properties: type: type: integer enum: - 3 allOf: - $ref: '#/components/schemas/AutomodActionType' format: int32 metadata: $ref: '#/components/schemas/UserCommunicationDisabledActionMetadata' required: - type - metadata GuildPreviewResponse: type: object properties: id: $ref: '#/components/schemas/SnowflakeType' name: type: string icon: type: - string - 'null' description: type: - string - 'null' home_header: type: - string - 'null' splash: type: - string - 'null' discovery_splash: type: - string - 'null' features: type: array items: $ref: '#/components/schemas/GuildFeatures' uniqueItems: true approximate_member_count: type: integer format: int32 approximate_presence_count: type: integer format: int32 emojis: type: array items: $ref: '#/components/schemas/EmojiResponse' stickers: type: array items: $ref: '#/components/schemas/GuildStickerResponse' required: - id - name - features - approximate_member_count - approximate_presence_count - emojis - stickers GuildWithCountsResponse: type: object properties: id: $ref: '#/components/schemas/SnowflakeType' name: type: string icon: type: - string - 'null' description: type: - string - 'null' home_header: type: - string - 'null' splash: type: - string - 'null' discovery_splash: type: - string - 'null' features: type: array items: $ref: '#/components/schemas/GuildFeatures' uniqueItems: true banner: type: - string - 'null' owner_id: $ref: '#/components/schemas/SnowflakeType' application_id: oneOf: - type: 'null' - $ref: '#/components/schemas/SnowflakeType' region: type: string afk_channel_id: oneOf: - type: 'null' - $ref: '#/components/schemas/SnowflakeType' afk_timeout: $ref: '#/components/schemas/AfkTimeouts' system_channel_id: oneOf: - type: 'null' - $ref: '#/components/schemas/SnowflakeType' system_channel_flags: type: integer format: int32 widget_enabled: type: boolean widget_channel_id: oneOf: - type: 'null' - $ref: '#/components/schemas/SnowflakeType' verification_level: $ref: '#/components/schemas/VerificationLevels' roles: type: array items: $ref: '#/components/schemas/GuildRoleResponse' default_message_notifications: $ref: '#/components/schemas/UserNotificationSettings' mfa_level: $ref: '#/components/schemas/GuildMFALevel' explicit_content_filter: $ref: '#/components/schemas/GuildExplicitContentFilterTypes' max_presences: type: - integer - 'null' format: int32 max_members: type: - integer - 'null' format: int32 max_stage_video_channel_users: type: - integer - 'null' format: int32 max_video_channel_users: type: - integer - 'null' format: int32 vanity_url_code: type: - string - 'null' premium_tier: $ref: '#/components/schemas/PremiumGuildTiers' premium_subscription_count: type: integer format: int32 preferred_locale: $ref: '#/components/schemas/AvailableLocalesEnum' rules_channel_id: oneOf: - type: 'null' - $ref: '#/components/schemas/SnowflakeType' safety_alerts_channel_id: oneOf: - type: 'null' - $ref: '#/components/schemas/SnowflakeType' public_updates_channel_id: oneOf: - type: 'null' - $ref: '#/components/schemas/SnowflakeType' premium_progress_bar_enabled: type: boolean nsfw: type: boolean nsfw_level: $ref: '#/components/schemas/GuildNSFWContentLevel' emojis: type: array items: $ref: '#/components/schemas/EmojiResponse' stickers: type: array items: $ref: '#/components/schemas/GuildStickerResponse' approximate_member_count: type: - integer - 'null' format: int32 approximate_presence_count: type: - integer - 'null' format: int32 required: - id - name - features - owner_id - region - afk_timeout - system_channel_flags - widget_enabled - verification_level - roles - default_message_notifications - mfa_level - explicit_content_filter - premium_tier - premium_subscription_count - preferred_locale - premium_progress_bar_enabled - nsfw - nsfw_level - emojis - stickers WidgetImageStyles: type: string oneOf: - title: SHIELD description: shield style widget with Discord icon and guild members online count const: shield - title: BANNER1 description: large image with guild icon, name and online count. "POWERED BY DISCORD" as the footer of the widget const: banner1 - title: BANNER2 description: smaller widget style with guild icon, name and online count. Split on the right with Discord logo const: banner2 - title: BANNER3 description: large image with guild icon, name and online count. In the footer, Discord logo on the left and "Chat Now" on the right const: banner3 - title: BANNER4 description: large Discord logo at the top of the widget. Guild icon, name and online count in the middle portion of the widget and a "JOIN MY SERVER" button at the bottom const: banner4 KeywordTriggerMetadata: type: object properties: keyword_filter: type: - array - 'null' items: type: string minLength: 1 maxLength: 60 maxItems: 1000 regex_patterns: type: - array - 'null' items: type: string minLength: 1 maxLength: 260 maxItems: 10 allow_list: type: - array - 'null' items: type: string minLength: 1 maxLength: 60 maxItems: 100 WebhookTypes: type: integer oneOf: - title: GUILD_INCOMING description: Incoming Webhooks can post messages to channels with a generated token const: 1 - title: CHANNEL_FOLLOWER description: Channel Follower Webhooks are internal webhooks used with Channel Following to post new messages into channels const: 2 - title: APPLICATION_INCOMING description: Application webhooks are webhooks used with Interactions const: 3 format: int32 GuildBanResponse: type: object properties: user: $ref: '#/components/schemas/UserResponse' reason: type: - string - 'null' required: - user GuildWelcomeChannel: type: object properties: channel_id: $ref: '#/components/schemas/SnowflakeType' description: type: string minLength: 1 maxLength: 50 emoji_id: oneOf: - type: 'null' - $ref: '#/components/schemas/SnowflakeType' emoji_name: type: - string - 'null' maxLength: 152133 required: - channel_id - description StageScheduledEventResponse: type: object properties: id: $ref: '#/components/schemas/SnowflakeType' guild_id: $ref: '#/components/schemas/SnowflakeType' name: type: string description: type: - string - 'null' channel_id: oneOf: - type: 'null' - $ref: '#/components/schemas/SnowflakeType' creator_id: oneOf: - type: 'null' - $ref: '#/components/schemas/SnowflakeType' creator: oneOf: - type: 'null' - $ref: '#/components/schemas/UserResponse' image: type: - string - 'null' scheduled_start_time: type: string format: date-time scheduled_end_time: type: - string - 'null' format: date-time status: $ref: '#/components/schemas/GuildScheduledEventStatuses' entity_type: type: integer enum: - 1 allOf: - $ref: '#/components/schemas/GuildScheduledEventEntityTypes' format: int32 entity_id: oneOf: - type: 'null' - $ref: '#/components/schemas/SnowflakeType' user_count: type: - integer - 'null' format: int32 privacy_level: $ref: '#/components/schemas/GuildScheduledEventPrivacyLevels' user_rsvp: oneOf: - type: 'null' - $ref: '#/components/schemas/ScheduledEventUserResponse' entity_metadata: oneOf: - type: 'null' - $ref: '#/components/schemas/EntityMetadataStageInstanceResponse' required: - id - guild_id - name - scheduled_start_time - status - entity_type - privacy_level VoiceScheduledEventCreateRequest: type: object properties: name: type: string maxLength: 100 description: type: - string - 'null' maxLength: 1000 image: type: - string - 'null' contentEncoding: base64 scheduled_start_time: type: string format: date-time scheduled_end_time: type: - string - 'null' format: date-time privacy_level: $ref: '#/components/schemas/GuildScheduledEventPrivacyLevels' entity_type: type: integer enum: - 2 allOf: - $ref: '#/components/schemas/GuildScheduledEventEntityTypes' format: int32 channel_id: oneOf: - type: 'null' - $ref: '#/components/schemas/SnowflakeType' entity_metadata: oneOf: - type: 'null' - $ref: '#/components/schemas/EntityMetadataVoice' required: - name - scheduled_start_time - privacy_level - entity_type PartialExternalConnectionIntegrationResponse: type: object properties: id: $ref: '#/components/schemas/SnowflakeType' type: type: string enum: - twitch - youtube allOf: - $ref: '#/components/schemas/IntegrationTypes' name: type: - string - 'null' account: oneOf: - type: 'null' - $ref: '#/components/schemas/AccountResponse' required: - id - type GuildWelcomeScreenChannelResponse: type: object properties: channel_id: $ref: '#/components/schemas/SnowflakeType' description: type: string emoji_id: oneOf: - type: 'null' - $ref: '#/components/schemas/SnowflakeType' emoji_name: type: - string - 'null' required: - channel_id - description AvailableLocalesEnum: type: string oneOf: - title: ar description: The ar locale const: ar - title: bg description: The bg locale const: bg - title: cs description: The cs locale const: cs - title: da description: The da locale const: da - title: de description: The de locale const: de - title: el description: The el locale const: el - title: en-GB description: The en-GB locale const: en-GB - title: en-US description: The en-US locale const: en-US - title: es-419 description: The es-419 locale const: es-419 - title: es-ES description: The es-ES locale const: es-ES - title: fi description: The fi locale const: fi - title: fr description: The fr locale const: fr - title: he description: The he locale const: he - title: hi description: The hi locale const: hi - title: hr description: The hr locale const: hr - title: hu description: The hu locale const: hu - title: id description: The id locale const: id - title: it description: The it locale const: it - title: ja description: The ja locale const: ja - title: ko description: The ko locale const: ko - title: lt description: The lt locale const: lt - title: nl description: The nl locale const: nl - title: 'no' description: The no locale const: 'no' - title: pl description: The pl locale const: pl - title: pt-BR description: The pt-BR locale const: pt-BR - title: ro description: The ro locale const: ro - title: ru description: The ru locale const: ru - title: sv-SE description: The sv-SE locale const: sv-SE - title: th description: The th locale const: th - title: tr description: The tr locale const: tr - title: uk description: The uk locale const: uk - title: vi description: The vi locale const: vi - title: zh-CN description: The zh-CN locale const: zh-CN - title: zh-TW description: The zh-TW locale const: zh-TW BlockMessageActionMetadata: type: object properties: custom_message: type: - string - 'null' maxLength: 150 GuildResponse: type: object properties: id: $ref: '#/components/schemas/SnowflakeType' name: type: string icon: type: - string - 'null' description: type: - string - 'null' home_header: type: - string - 'null' splash: type: - string - 'null' discovery_splash: type: - string - 'null' features: type: array items: $ref: '#/components/schemas/GuildFeatures' uniqueItems: true banner: type: - string - 'null' owner_id: $ref: '#/components/schemas/SnowflakeType' application_id: oneOf: - type: 'null' - $ref: '#/components/schemas/SnowflakeType' region: type: string afk_channel_id: oneOf: - type: 'null' - $ref: '#/components/schemas/SnowflakeType' afk_timeout: $ref: '#/components/schemas/AfkTimeouts' system_channel_id: oneOf: - type: 'null' - $ref: '#/components/schemas/SnowflakeType' system_channel_flags: type: integer format: int32 widget_enabled: type: boolean widget_channel_id: oneOf: - type: 'null' - $ref: '#/components/schemas/SnowflakeType' verification_level: $ref: '#/components/schemas/VerificationLevels' roles: type: array items: $ref: '#/components/schemas/GuildRoleResponse' default_message_notifications: $ref: '#/components/schemas/UserNotificationSettings' mfa_level: $ref: '#/components/schemas/GuildMFALevel' explicit_content_filter: $ref: '#/components/schemas/GuildExplicitContentFilterTypes' max_presences: type: - integer - 'null' format: int32 max_members: type: - integer - 'null' format: int32 max_stage_video_channel_users: type: - integer - 'null' format: int32 max_video_channel_users: type: - integer - 'null' format: int32 vanity_url_code: type: - string - 'null' premium_tier: $ref: '#/components/schemas/PremiumGuildTiers' premium_subscription_count: type: integer format: int32 preferred_locale: $ref: '#/components/schemas/AvailableLocalesEnum' rules_channel_id: oneOf: - type: 'null' - $ref: '#/components/schemas/SnowflakeType' safety_alerts_channel_id: oneOf: - type: 'null' - $ref: '#/components/schemas/SnowflakeType' public_updates_channel_id: oneOf: - type: 'null' - $ref: '#/components/schemas/SnowflakeType' premium_progress_bar_enabled: type: boolean nsfw: type: boolean nsfw_level: $ref: '#/components/schemas/GuildNSFWContentLevel' emojis: type: array items: $ref: '#/components/schemas/EmojiResponse' stickers: type: array items: $ref: '#/components/schemas/GuildStickerResponse' required: - id - name - features - owner_id - region - afk_timeout - system_channel_flags - widget_enabled - verification_level - roles - default_message_notifications - mfa_level - explicit_content_filter - premium_tier - premium_subscription_count - preferred_locale - premium_progress_bar_enabled - nsfw - nsfw_level - emojis - stickers OnboardingPromptType: type: integer oneOf: - title: MULTIPLE_CHOICE description: Multiple choice options const: 0 - title: DROPDOWN description: Many options shown as a dropdown const: 1 format: int32 ForumLayout: type: integer oneOf: - title: DEFAULT description: No default has been set for forum channel const: 0 - title: LIST description: Display posts as a list const: 1 - title: GRID description: Display posts as a collection of tiles const: 2 format: int32 CreateOrUpdateThreadTagRequest: type: object properties: name: type: string minLength: 0 maxLength: 20 emoji_id: oneOf: - type: 'null' - $ref: '#/components/schemas/SnowflakeType' emoji_name: type: - string - 'null' maxLength: 100 moderated: type: - boolean - 'null' required: - name ApplicationCommandIntegerOptionResponse: type: object properties: type: type: integer enum: - 4 allOf: - $ref: '#/components/schemas/ApplicationCommandOptionType' format: int32 name: type: string name_localized: type: - string - 'null' name_localizations: type: - object - 'null' additionalProperties: type: string description: type: string description_localized: type: - string - 'null' description_localizations: type: - object - 'null' additionalProperties: type: string required: type: - boolean - 'null' autocomplete: type: - boolean - 'null' choices: type: - array - 'null' items: $ref: '#/components/schemas/ApplicationCommandOptionIntegerChoiceResponse' min_value: oneOf: - type: 'null' - $ref: '#/components/schemas/Int53Type' max_value: oneOf: - type: 'null' - $ref: '#/components/schemas/Int53Type' required: - type - name - description ErrorResponse: type: object description: Errors object returned by the Discord API allOf: - $ref: '#/components/schemas/Error' - type: object properties: errors: $ref: '#/components/schemas/ErrorDetails' UserCommunicationDisabledActionMetadataResponse: type: object properties: duration_seconds: type: integer format: int32 required: - duration_seconds MLSpamUpsertRequest: type: object properties: name: type: string maxLength: 100 event_type: $ref: '#/components/schemas/AutomodEventType' actions: type: - array - 'null' items: oneOf: - $ref: '#/components/schemas/BlockMessageAction' - $ref: '#/components/schemas/FlagToChannelAction' - $ref: '#/components/schemas/QuarantineUserAction' - $ref: '#/components/schemas/UserCommunicationDisabledAction' minItems: 1 maxItems: 5 enabled: type: - boolean - 'null' exempt_roles: type: - array - 'null' items: $ref: '#/components/schemas/SnowflakeType' maxItems: 20 uniqueItems: true exempt_channels: type: - array - 'null' items: $ref: '#/components/schemas/SnowflakeType' maxItems: 50 uniqueItems: true trigger_type: type: integer enum: - 3 allOf: - $ref: '#/components/schemas/AutomodTriggerType' format: int32 trigger_metadata: oneOf: - type: 'null' - $ref: '#/components/schemas/MLSpamTriggerMetadata' required: - name - event_type - trigger_type UpdateDefaultReactionEmojiRequest: type: object properties: emoji_id: oneOf: - type: 'null' - $ref: '#/components/schemas/SnowflakeType' emoji_name: type: - string - 'null' maxLength: 100 GuildTemplateChannelResponse: type: object properties: id: type: - integer - 'null' format: int32 type: type: integer enum: - 0 - 2 - 4 allOf: - $ref: '#/components/schemas/ChannelTypes' format: int32 name: type: - string - 'null' position: type: - integer - 'null' format: int32 topic: type: - string - 'null' bitrate: type: integer format: int32 user_limit: type: integer format: int32 nsfw: type: boolean rate_limit_per_user: type: integer format: int32 parent_id: oneOf: - type: 'null' - $ref: '#/components/schemas/SnowflakeType' default_auto_archive_duration: oneOf: - type: 'null' - $ref: '#/components/schemas/ThreadAutoArchiveDuration' permission_overwrites: type: array items: oneOf: - type: 'null' - $ref: '#/components/schemas/ChannelPermissionOverwriteResponse' available_tags: type: - array - 'null' items: $ref: '#/components/schemas/GuildTemplateChannelTags' template: type: string default_reaction_emoji: oneOf: - type: 'null' - $ref: '#/components/schemas/DefaultReactionEmojiResponse' default_thread_rate_limit_per_user: type: - integer - 'null' format: int32 default_sort_order: oneOf: - type: 'null' - $ref: '#/components/schemas/ThreadSortOrder' default_forum_layout: oneOf: - type: 'null' - $ref: '#/components/schemas/ForumLayout' icon_emoji: oneOf: - type: 'null' - $ref: '#/components/schemas/IconEmojiResponse' theme_color: type: - integer - 'null' format: int32 required: - type - bitrate - user_limit - nsfw - rate_limit_per_user - permission_overwrites - template VoiceScheduledEventPatchRequestPartial: type: object properties: status: oneOf: - type: 'null' - $ref: '#/components/schemas/GuildScheduledEventStatuses' name: type: string maxLength: 100 description: type: - string - 'null' maxLength: 1000 image: type: - string - 'null' contentEncoding: base64 scheduled_start_time: type: string format: date-time scheduled_end_time: type: - string - 'null' format: date-time entity_type: oneOf: - type: 'null' - type: integer enum: - 2 allOf: - $ref: '#/components/schemas/GuildScheduledEventEntityTypes' format: int32 privacy_level: $ref: '#/components/schemas/GuildScheduledEventPrivacyLevels' channel_id: oneOf: - type: 'null' - $ref: '#/components/schemas/SnowflakeType' entity_metadata: oneOf: - type: 'null' - $ref: '#/components/schemas/EntityMetadataVoice' NewMemberActionType: type: integer oneOf: - title: VIEW const: 0 - title: TALK const: 1 format: int32 IntegrationTypes: type: string oneOf: - title: DISCORD const: discord - title: TWITCH const: twitch - title: YOUTUBE const: youtube - title: GUILD_SUBSCRIPTION const: guild_subscription GuildInviteResponse: type: object properties: type: oneOf: - type: 'null' - type: integer enum: - 0 allOf: - $ref: '#/components/schemas/InviteTypes' format: int32 code: type: string inviter: oneOf: - type: 'null' - $ref: '#/components/schemas/UserResponse' max_age: type: - integer - 'null' format: int32 created_at: type: - string - 'null' format: date-time expires_at: type: - string - 'null' format: date-time is_contact: type: - boolean - 'null' flags: type: - integer - 'null' format: int32 guild: oneOf: - type: 'null' - $ref: '#/components/schemas/InviteGuildResponse' guild_id: oneOf: - type: 'null' - $ref: '#/components/schemas/SnowflakeType' channel: oneOf: - type: 'null' - $ref: '#/components/schemas/InviteChannelResponse' stage_instance: oneOf: - type: 'null' - $ref: '#/components/schemas/InviteStageInstanceResponse' target_type: oneOf: - type: 'null' - $ref: '#/components/schemas/InviteTargetTypes' target_user: oneOf: - type: 'null' - $ref: '#/components/schemas/UserResponse' target_application: oneOf: - type: 'null' - $ref: '#/components/schemas/InviteApplicationResponse' guild_scheduled_event: oneOf: - type: 'null' - $ref: '#/components/schemas/ScheduledEventResponse' uses: type: - integer - 'null' format: int32 max_uses: type: - integer - 'null' format: int32 temporary: type: - boolean - 'null' approximate_member_count: type: - integer - 'null' format: int32 approximate_presence_count: type: - integer - 'null' format: int32 required: - code ApplicationIncomingWebhookResponse: type: object properties: application_id: oneOf: - type: 'null' - $ref: '#/components/schemas/SnowflakeType' avatar: type: - string - 'null' channel_id: oneOf: - type: 'null' - $ref: '#/components/schemas/SnowflakeType' guild_id: oneOf: - type: 'null' - $ref: '#/components/schemas/SnowflakeType' id: $ref: '#/components/schemas/SnowflakeType' name: type: string type: type: integer enum: - 3 allOf: - $ref: '#/components/schemas/WebhookTypes' format: int32 user: oneOf: - type: 'null' - $ref: '#/components/schemas/UserResponse' required: - id - name - type InviteChannelResponse: type: object properties: id: $ref: '#/components/schemas/SnowflakeType' type: $ref: '#/components/schemas/ChannelTypes' name: type: - string - 'null' icon: type: - string - 'null' recipients: type: - array - 'null' items: $ref: '#/components/schemas/InviteChannelRecipientResponse' required: - id - type KeywordTriggerMetadataResponse: type: object properties: keyword_filter: type: array items: type: string regex_patterns: type: array items: type: string allow_list: type: array items: type: string required: - keyword_filter - regex_patterns - allow_list ScheduledEventResponse: type: object properties: id: $ref: '#/components/schemas/SnowflakeType' guild_id: $ref: '#/components/schemas/SnowflakeType' name: type: string description: type: - string - 'null' channel_id: oneOf: - type: 'null' - $ref: '#/components/schemas/SnowflakeType' creator_id: oneOf: - type: 'null' - $ref: '#/components/schemas/SnowflakeType' creator: oneOf: - type: 'null' - $ref: '#/components/schemas/UserResponse' image: type: - string - 'null' scheduled_start_time: type: string format: date-time scheduled_end_time: type: - string - 'null' format: date-time status: $ref: '#/components/schemas/GuildScheduledEventStatuses' entity_type: $ref: '#/components/schemas/GuildScheduledEventEntityTypes' entity_id: oneOf: - type: 'null' - $ref: '#/components/schemas/SnowflakeType' user_count: type: - integer - 'null' format: int32 privacy_level: $ref: '#/components/schemas/GuildScheduledEventPrivacyLevels' user_rsvp: oneOf: - type: 'null' - $ref: '#/components/schemas/ScheduledEventUserResponse' required: - id - guild_id - name - scheduled_start_time - status - entity_type - privacy_level DefaultKeywordRuleResponse: type: object properties: id: $ref: '#/components/schemas/SnowflakeType' guild_id: $ref: '#/components/schemas/SnowflakeType' creator_id: $ref: '#/components/schemas/SnowflakeType' name: type: string event_type: $ref: '#/components/schemas/AutomodEventType' actions: type: array items: oneOf: - $ref: '#/components/schemas/BlockMessageActionResponse' - $ref: '#/components/schemas/FlagToChannelActionResponse' - $ref: '#/components/schemas/QuarantineUserActionResponse' - $ref: '#/components/schemas/UserCommunicationDisabledActionResponse' trigger_type: type: integer enum: - 4 allOf: - $ref: '#/components/schemas/AutomodTriggerType' format: int32 enabled: type: - boolean - 'null' exempt_roles: type: - array - 'null' items: $ref: '#/components/schemas/SnowflakeType' uniqueItems: true exempt_channels: type: - array - 'null' items: $ref: '#/components/schemas/SnowflakeType' uniqueItems: true trigger_metadata: $ref: '#/components/schemas/DefaultKeywordListTriggerMetadataResponse' required: - id - guild_id - creator_id - name - event_type - actions - trigger_type - trigger_metadata ApplicationCommandType: type: integer oneOf: - title: CHAT description: Slash commands; a text-based command that shows up when a user types / const: 1 - title: USER description: A UI-based command that shows up when you right click or tap on a user const: 2 - title: MESSAGE description: A UI-based command that shows up when you right click or tap on a message const: 3 format: int32 WebhookSourceChannelResponse: type: object properties: id: $ref: '#/components/schemas/SnowflakeType' name: type: string required: - id - name EntityMetadataExternal: type: object properties: location: type: string maxLength: 100 required: - location GuildOnboardingResponse: type: object properties: guild_id: $ref: '#/components/schemas/SnowflakeType' prompts: type: array items: $ref: '#/components/schemas/OnboardingPromptResponse' default_channel_ids: type: array items: $ref: '#/components/schemas/SnowflakeType' uniqueItems: true enabled: type: boolean required: - guild_id - prompts - default_channel_ids - enabled WidgetActivity: type: object properties: name: type: string required: - name EntityMetadataStageInstance: type: object properties: {} GuildIncomingWebhookResponse: type: object properties: application_id: oneOf: - type: 'null' - $ref: '#/components/schemas/SnowflakeType' avatar: type: - string - 'null' channel_id: oneOf: - type: 'null' - $ref: '#/components/schemas/SnowflakeType' guild_id: oneOf: - type: 'null' - $ref: '#/components/schemas/SnowflakeType' id: $ref: '#/components/schemas/SnowflakeType' name: type: string type: type: integer enum: - 1 allOf: - $ref: '#/components/schemas/WebhookTypes' format: int32 user: oneOf: - type: 'null' - $ref: '#/components/schemas/UserResponse' token: type: - string - 'null' url: type: - string - 'null' format: uri required: - id - name - type ApplicationCommandSubcommandOptionResponse: type: object properties: type: type: integer enum: - 1 allOf: - $ref: '#/components/schemas/ApplicationCommandOptionType' format: int32 name: type: string name_localized: type: - string - 'null' name_localizations: type: - object - 'null' additionalProperties: type: string description: type: string description_localized: type: - string - 'null' description_localizations: type: - object - 'null' additionalProperties: type: string required: type: - boolean - 'null' options: type: - array - 'null' items: oneOf: - $ref: '#/components/schemas/ApplicationCommandAttachmentOptionResponse' - $ref: '#/components/schemas/ApplicationCommandBooleanOptionResponse' - $ref: '#/components/schemas/ApplicationCommandChannelOptionResponse' - $ref: '#/components/schemas/ApplicationCommandIntegerOptionResponse' - $ref: '#/components/schemas/ApplicationCommandMentionableOptionResponse' - $ref: '#/components/schemas/ApplicationCommandNumberOptionResponse' - $ref: '#/components/schemas/ApplicationCommandRoleOptionResponse' - $ref: '#/components/schemas/ApplicationCommandStringOptionResponse' - $ref: '#/components/schemas/ApplicationCommandUserOptionResponse' required: - type - name - description GuildScheduledEventPrivacyLevels: type: integer oneOf: - title: GUILD_ONLY description: the scheduled event is only accessible to guild members const: 2 format: int32 AfkTimeouts: type: integer oneOf: - title: ONE_MINUTE const: 60 - title: FIVE_MINUTES const: 300 - title: FIFTEEN_MINUTES const: 900 - title: THIRTY_MINUTES const: 1800 - title: ONE_HOUR const: 3600 format: int32 SettingsEmojiResponse: type: object properties: id: oneOf: - type: 'null' - $ref: '#/components/schemas/SnowflakeType' name: type: - string - 'null' animated: type: - boolean - 'null' ChannelTypes: type: integer oneOf: - title: DM description: A direct message between users const: 1 - title: GROUP_DM description: A direct message between multiple users const: 3 - title: GUILD_TEXT description: A text channel within a server const: 0 - title: GUILD_VOICE description: A voice channel within a server const: 2 - title: GUILD_CATEGORY description: An organizational category that contains up to 50 channels const: 4 - title: GUILD_ANNOUNCEMENT description: A channel that users can follow and crosspost into their own server (formerly news channels) const: 5 - title: ANNOUNCEMENT_THREAD description: A temporary sub-channel within a GUILD_ANNOUNCEMENT channel const: 10 - title: PUBLIC_THREAD description: A temporary sub-channel within a GUILD_TEXT or GUILD_THREADS_ONLY channel type set const: 11 - title: PRIVATE_THREAD description: A temporary sub-channel within a GUILD_TEXT channel that is only viewable by those invited and those with the MANAGE_THREADS permission const: 12 - title: GUILD_STAGE_VOICE description: A voice channel for hosting events with an audience const: 13 - title: GUILD_DIRECTORY description: The channel in a hub containing the listed servers const: 14 - title: GUILD_FORUM description: Channel that can only contain threads const: 15 format: int32 MentionSpamUpsertRequestPartial: type: object properties: name: type: string maxLength: 100 event_type: $ref: '#/components/schemas/AutomodEventType' actions: type: - array - 'null' items: oneOf: - $ref: '#/components/schemas/BlockMessageAction' - $ref: '#/components/schemas/FlagToChannelAction' - $ref: '#/components/schemas/QuarantineUserAction' - $ref: '#/components/schemas/UserCommunicationDisabledAction' minItems: 1 maxItems: 5 enabled: type: - boolean - 'null' exempt_roles: type: - array - 'null' items: $ref: '#/components/schemas/SnowflakeType' maxItems: 20 uniqueItems: true exempt_channels: type: - array - 'null' items: $ref: '#/components/schemas/SnowflakeType' maxItems: 50 uniqueItems: true trigger_type: type: integer enum: - 5 allOf: - $ref: '#/components/schemas/AutomodTriggerType' format: int32 trigger_metadata: oneOf: - type: 'null' - $ref: '#/components/schemas/MentionSpamTriggerMetadata' responses: ClientError: description: Client error response content: application/json: schema: type: object properties: code: type: integer message: type: string errors: type: object ClientErrorResponse: description: Client error response content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' securitySchemes: BotToken: type: http scheme: bearer description: Bot token authentication externalDocs: description: Discord Interactions Documentation url: https://discord.com/developers/docs/interactions/overview