diff --git a/src/api/Routes/cdn.ts b/src/api/Routes/cdn.ts index 2d5a541..3b333de 100644 --- a/src/api/Routes/cdn.ts +++ b/src/api/Routes/cdn.ts @@ -10,8 +10,8 @@ export interface CDNRoute { avatars(id: string): { get(hash: string, options?: CDNUrlOptions): string; }; - 'avatar-decorations'(userId: string): { - get(hash: string, options?: BaseCDNUrlOptions): string; + 'avatar-decoration-presets'(asset: string): { + get(options?: BaseCDNUrlOptions): string; }; 'channel-icons'(channelId: string): { get(hash: string, options?: BaseCDNUrlOptions): string; diff --git a/src/commands/applications/chatcontext.ts b/src/commands/applications/chatcontext.ts index 9fc94b8..5b4ef61 100644 --- a/src/commands/applications/chatcontext.ts +++ b/src/commands/applications/chatcontext.ts @@ -146,7 +146,7 @@ export class CommandContext< channel(mode?: 'rest' | 'flow'): Promise>; channel(mode: 'cache'): ReturnCache>; channel(mode: 'cache' | 'rest' | 'flow' = 'flow') { - if (this.interaction?.channel && mode === 'cache') + if (this.interaction && mode === 'cache') return this.client.cache.adapter.isAsync ? Promise.resolve(this.interaction.channel) : this.interaction.channel; switch (mode) { case 'cache': @@ -200,7 +200,7 @@ export class CommandContext< } get channelId() { - return this.interaction?.channelId || (this.message! as MessageStructure).channelId; + return this.interaction?.channel.id || (this.message! as MessageStructure).channelId; } get author(): UserStructure { diff --git a/src/commands/applications/entrycontext.ts b/src/commands/applications/entrycontext.ts index 5c97be7..0f5d249 100644 --- a/src/commands/applications/entrycontext.ts +++ b/src/commands/applications/entrycontext.ts @@ -122,7 +122,7 @@ export class EntryPointContext ex } get channelId() { - return this.interaction.channelId!; + return this.interaction.channel.id; } get author(): UserStructure { diff --git a/src/commands/applications/menucontext.ts b/src/commands/applications/menucontext.ts index e4f1958..a903dd1 100644 --- a/src/commands/applications/menucontext.ts +++ b/src/commands/applications/menucontext.ts @@ -146,7 +146,7 @@ export class MenuCommandContext< } get channelId() { - return this.interaction.channelId!; + return this.interaction.channel.id; } get author(): UserStructure { diff --git a/src/components/componentcontext.ts b/src/components/componentcontext.ts index e0a11dc..3afe6f5 100644 --- a/src/components/componentcontext.ts +++ b/src/components/componentcontext.ts @@ -211,7 +211,7 @@ export class ComponentContext< * Gets the ID of the channel of the interaction. */ get channelId() { - return this.interaction.channelId!; + return this.interaction.channel.id; } /** diff --git a/src/components/modalcontext.ts b/src/components/modalcontext.ts index e9cd2ef..83f6a60 100644 --- a/src/components/modalcontext.ts +++ b/src/components/modalcontext.ts @@ -181,7 +181,7 @@ export class ModalContext extends * Gets the ID of the channel of the interaction. */ get channelId() { - return this.interaction.channelId!; + return this.interaction.channel.id; } /** diff --git a/src/structures/Interaction.ts b/src/structures/Interaction.ts index e40490f..6b57dbe 100644 --- a/src/structures/Interaction.ts +++ b/src/structures/Interaction.ts @@ -123,7 +123,7 @@ export class BaseInteraction< this.message = Transformers.Message(client, interaction.message); } this.appPermissions = new PermissionsBitField(Number(interaction.app_permissions)); - if (interaction.channel) { + if ('channel' in interaction) { this.channel = channelFrom(interaction.channel, client); } this.user = this.member?.user ?? Transformers.User(client, interaction.user!); @@ -395,6 +395,7 @@ export class AutocompleteInteraction extend declare data: ObjectToLower; options: OptionResolverStructure; declare entitlements: EntitlementStructure[]; + declare channel: AllChannels; constructor( client: UsingClient, interaction: APIApplicationCommandAutocompleteInteraction, @@ -435,6 +436,7 @@ export class Interaction< FromGuild extends boolean = boolean, Type extends APIInteraction = APIInteraction, > extends BaseInteraction { + declare channel: AllChannels; fetchMessage(messageId: string): Promise { return this.client.interactions.fetchResponse(this.token, messageId); } @@ -504,6 +506,7 @@ export class ApplicationCommandInteraction< Type extends APIApplicationCommandInteraction = APIApplicationCommandInteraction, > extends Interaction { type!: ApplicationCommandType; + declare channel: AllChannels; respond( data: | APIInteractionResponseChannelMessageWithSource @@ -522,6 +525,7 @@ export class EntryPointInteraction extends FromGuild, APIEntryPointCommandInteraction > { + declare channel: AllChannels; async withReponse(data?: InteractionCreateBodyRequest) { let body = { type: InteractionResponseType.LaunchActivity } as const; @@ -586,7 +590,6 @@ export class ComponentInteraction< Type extends APIMessageComponentInteraction = APIMessageComponentInteraction, > extends Interaction { declare data: ObjectToLower; - declare channelId: string; declare channel: AllChannels; declare type: InteractionType.MessageComponent; declare message: MessageStructure; @@ -624,7 +627,7 @@ export class ButtonInteraction extends ComponentInteraction { export class SelectMenuInteraction extends ComponentInteraction { declare data: ObjectToLower; - + declare channel: AllChannels; constructor( client: UsingClient, interaction: APIMessageComponentSelectMenuInteraction, @@ -646,7 +649,7 @@ export class StringSelectMenuInteraction< >) { declare data: OmitInsert, 'values', { values: T }>; declare values: T; - + declare channel: AllChannels; isStringSelectMenu(): this is StringSelectMenuInteraction { return true; } @@ -654,6 +657,7 @@ export class StringSelectMenuInteraction< export class ChannelSelectMenuInteraction extends SelectMenuInteraction { channels: AllChannels[]; + declare channel: AllChannels; constructor( client: UsingClient, interaction: APIMessageComponentSelectMenuInteraction, @@ -673,6 +677,7 @@ export class MentionableSelectMenuInteraction extends SelectMenuInteraction { roles: GuildRoleStructure[]; members: InteractionGuildMemberStructure[]; users: UserStructure[]; + declare channel: AllChannels; constructor( client: UsingClient, interaction: APIMessageComponentSelectMenuInteraction, @@ -703,6 +708,7 @@ export class MentionableSelectMenuInteraction extends SelectMenuInteraction { export class RoleSelectMenuInteraction extends SelectMenuInteraction { roles: GuildRoleStructure[]; + declare channel: AllChannels; constructor( client: UsingClient, interaction: APIMessageComponentSelectMenuInteraction, @@ -721,6 +727,7 @@ export class RoleSelectMenuInteraction extends SelectMenuInteraction { export class UserSelectMenuInteraction extends SelectMenuInteraction { members: InteractionGuildMemberStructure[]; users: UserStructure[]; + declare channel: AllChannels; constructor( client: UsingClient, interaction: APIMessageComponentSelectMenuInteraction, @@ -751,7 +758,7 @@ export class ChatInputCommandInteraction ex APIChatInputApplicationCommandInteraction > { declare data: ObjectToLower; - + declare channel: AllChannels; isChatInput(): this is ChatInputCommandInteraction { return true; } @@ -763,7 +770,7 @@ export class UserCommandInteraction extends > { declare type: ApplicationCommandType.User; declare data: ObjectToLower; - + declare channel: AllChannels; isUser(): this is UserCommandInteraction { return true; } @@ -775,7 +782,7 @@ export class MessageCommandInteraction exte > { declare type: ApplicationCommandType.Message; declare data: ObjectToLower; - + declare channel: AllChannels; isMessage(): this is MessageCommandInteraction { return true; } @@ -786,7 +793,7 @@ export interface ModalSubmitInteraction @mix(Interaction) export class ModalSubmitInteraction extends BaseInteraction { declare data: ObjectToLower; - + declare channel: AllChannels; update( data: ComponentInteractionMessageUpdate, withResponse?: WR, diff --git a/src/structures/User.ts b/src/structures/User.ts index c0aff05..14d6c39 100644 --- a/src/structures/User.ts +++ b/src/structures/User.ts @@ -47,8 +47,8 @@ export class User extends DiscordBase { } avatarDecorationURL(options?: ImageOptions) { - if (!this.avatarDecoration) return; - return this.rest.cdn['avatar-decorations'](this.id).get(this.avatarDecoration, options); + if (!this.avatarDecorationData) return; + return this.rest.cdn['avatar-decoration-presets'](this.avatarDecorationData.asset).get(options); } bannerURL(options?: ImageOptions) { diff --git a/src/types/gateway.ts b/src/types/gateway.ts index f9a6dbc..e29ad47 100644 --- a/src/types/gateway.ts +++ b/src/types/gateway.ts @@ -1497,20 +1497,6 @@ export type GatewayThreadMemberUpdateDispatch = DataPayload< */ export type GatewayThreadMemberUpdateDispatchData = APIThreadMember & { guild_id: Snowflake }; -/** - * @deprecated This type doesn't accurately reflect the Discord API. - * Use {@apilink GatewayThreadCreateDispatch}, - * {@apilink GatewayThreadUpdateDispatch}, or - * {@apilink GatewayThreadDeleteDispatch} instead. - * https://discord.com/developers/docs/topics/gateway-events#thread-create - * https://discord.com/developers/docs/topics/gateway-events#thread-update - * https://discord.com/developers/docs/topics/gateway-events#thread-delete - */ -export type GatewayThreadModifyDispatch = DataPayload< - GatewayDispatchEvents.ThreadCreate | GatewayDispatchEvents.ThreadDelete | GatewayDispatchEvents.ThreadUpdate, - GatewayChannelModifyDispatchData ->; - /** * https://discord.com/developers/docs/topics/gateway-events#thread-create */ diff --git a/src/types/payloads/_interactions/applicationCommands.ts b/src/types/payloads/_interactions/applicationCommands.ts index b01ab52..ef08364 100644 --- a/src/types/payloads/_interactions/applicationCommands.ts +++ b/src/types/payloads/_interactions/applicationCommands.ts @@ -73,20 +73,6 @@ export interface APIApplicationCommand { * Set of permissions represented as a bitset */ default_member_permissions: Permissions | null; - /** - * Indicates whether the command is available in DMs with the app, only for globally-scoped commands. By default, commands are visible - * - * @deprecated Use `contexts` instead - */ - dm_permission?: boolean; - /** - * Whether the command is enabled by default when the app is added to a guild - * - * If missing, this property should be assumed as `true` - * - * @deprecated Use `dm_permission` and/or `default_member_permissions` instead - */ - default_permission?: boolean; /** * Indicates whether the command is age-restricted, defaults to `false` */ @@ -201,10 +187,7 @@ export type APIApplicationCommandInteractionData = export type APIApplicationCommandInteractionWrapper = APIBaseInteraction & Required< - Pick< - APIBaseInteraction, - 'app_permissions' | 'channel_id' | 'channel' | 'data' - > + Pick, 'app_permissions' | 'channel' | 'data'> >; /** diff --git a/src/types/payloads/_interactions/base.ts b/src/types/payloads/_interactions/base.ts index 24c3973..ec89aea 100644 --- a/src/types/payloads/_interactions/base.ts +++ b/src/types/payloads/_interactions/base.ts @@ -130,13 +130,7 @@ export interface APIBaseInteraction { /** * The channel it was sent from */ - channel?: Partial & Pick; - /** - * The id of the channel it was sent from - * - * @deprecated Use {@apilink APIBaseInteraction#channel} instead - */ - channel_id?: Snowflake; + channel: Partial & Pick; /** * Guild member data for the invoking user, including permissions * @@ -232,18 +226,8 @@ export interface APIInteractionDataResolved { attachments?: Record; } -/** - * @deprecated Renamed to `APIInteractionDataResolved` - */ -export type APIChatInputApplicationCommandInteractionDataResolved = APIInteractionDataResolved; - /** * `users` and optional `members` from APIInteractionDataResolved, for user commands and user selects */ export type APIUserInteractionDataResolved = Pick & Required>; - -/** - * @deprecated Renamed to `APIUserInteractionDataResolved` - */ -export type APIUserApplicationCommandInteractionDataResolved = APIUserInteractionDataResolved; diff --git a/src/types/payloads/_interactions/messageComponents.ts b/src/types/payloads/_interactions/messageComponents.ts index 5221198..3accd33 100644 --- a/src/types/payloads/_interactions/messageComponents.ts +++ b/src/types/payloads/_interactions/messageComponents.ts @@ -15,7 +15,7 @@ export type APIMessageComponentInteraction = APIBaseInteraction< Required< Pick< APIBaseInteraction, - 'app_permissions' | 'channel_id' | 'channel' | 'data' | 'message' + 'app_permissions' | 'channel' | 'data' | 'message' > >; @@ -26,7 +26,7 @@ export type APIMessageComponentButtonInteraction = APIBaseInteraction< Required< Pick< APIBaseInteraction, - 'app_permissions' | 'channel_id' | 'channel' | 'data' | 'message' + 'app_permissions' | 'channel' | 'data' | 'message' > >; @@ -37,7 +37,7 @@ export type APIMessageComponentSelectMenuInteraction = APIBaseInteraction< Required< Pick< APIBaseInteraction, - 'app_permissions' | 'channel_id' | 'channel' | 'data' | 'message' + 'app_permissions' | 'channel' | 'data' | 'message' > >; diff --git a/src/types/payloads/_interactions/ping.ts b/src/types/payloads/_interactions/ping.ts index 06eb95a..3bf00fe 100644 --- a/src/types/payloads/_interactions/ping.ts +++ b/src/types/payloads/_interactions/ping.ts @@ -1,4 +1,4 @@ import type { APIBaseInteraction } from './base'; import type { InteractionType } from './responses'; -export type APIPingInteraction = Omit, 'locale'>; +export type APIPingInteraction = Omit, 'locale' | 'channel'>; diff --git a/src/types/payloads/_interactions/responses.ts b/src/types/payloads/_interactions/responses.ts index 2927554..99c5494 100644 --- a/src/types/payloads/_interactions/responses.ts +++ b/src/types/payloads/_interactions/responses.ts @@ -26,8 +26,7 @@ export type APIInteractionResponse = | APIInteractionResponsePong | APIInteractionResponseUpdateMessage | APIModalInteractionResponse - | APIInteractionResponseLaunchActivity - | APIPremiumRequiredInteractionResponse; + | APIInteractionResponseLaunchActivity; export interface APIInteractionResponsePong { type: InteractionResponseType.Pong; @@ -43,10 +42,6 @@ export interface APIModalInteractionResponse { data: APIModalInteractionResponseCallbackData; } -export interface APIPremiumRequiredInteractionResponse { - type: InteractionResponseType.PremiumRequired; -} - export interface APIInteractionResponseChannelMessageWithSource { type: InteractionResponseType.ChannelMessageWithSource; data: APIInteractionResponseCallbackData; @@ -102,12 +97,6 @@ export enum InteractionResponseType { * Respond to an interaction with an modal for a user to fill-out */ Modal, - /** - * Respond to an interaction with an upgrade button, only available for apps with monetization enabled - * - * @deprecated See https://discord.com/developers/docs/change-log#premium-apps-new-premium-button-style-deep-linking-url-schemes - */ - PremiumRequired, /** * Launch the Activity associated with the app. Only available for apps with Activities enabled */ diff --git a/src/types/payloads/application.ts b/src/types/payloads/application.ts index a6812d6..32643a4 100644 --- a/src/types/payloads/application.ts +++ b/src/types/payloads/application.ts @@ -60,12 +60,6 @@ export interface APIApplication { * See https://discord.com/developers/docs/resources/user#user-object */ owner?: APIUser; - /** - * An empty string - * - * @deprecated This field will be removed in v11 - */ - summary: ''; /** * The hexadecimal encoded key for verification in interactions and the GameSDK's GetTicket function * diff --git a/src/types/payloads/channel.ts b/src/types/payloads/channel.ts index 607da85..194c26c 100644 --- a/src/types/payloads/channel.ts +++ b/src/types/payloads/channel.ts @@ -7,10 +7,10 @@ import type { ChannelType, OverwriteType, Permissions, Snowflake, VideoQualityMo import type { APIApplication } from './application'; import type { APIPartialEmoji } from './emoji'; import type { APIGuildMember } from './guild'; -import type { APIInteractionDataResolved, APIMessageInteraction, APIMessageInteractionMetadata } from './interactions'; +import type { APIInteractionDataResolved, APIMessageInteractionMetadata } from './interactions'; import type { APIRole } from './permissions'; import type { APIPoll } from './poll'; -import type { APISticker, APIStickerItem } from './sticker'; +import type { APIStickerItem } from './sticker'; import type { APIUser } from './user'; /** @@ -565,12 +565,6 @@ export interface APIMessage { * @unstable */ interaction_metadata?: APIMessageInteractionMetadata; - /** - * Sent if the message is a response to an Interaction - * - * @deprecated In favor of `interaction_metadata` - */ - interaction?: APIMessageInteraction; /** * Sent if a thread was started from this message */ @@ -592,14 +586,6 @@ export interface APIMessage { * See https://discord.com/developers/docs/resources/sticker#sticker-item-object */ sticker_items?: APIStickerItem[]; - /** - * The stickers sent with the message - * - * See https://discord.com/developers/docs/resources/sticker#sticker-object - * - * @deprecated Use `sticker_items` instead - */ - stickers?: APISticker[]; /** * A generally increasing integer (there may be gaps or duplicates) that represents the approximate position of the message in a thread * @@ -763,7 +749,6 @@ export type APIMessageSnapshotFields = Pick< | 'type' | 'sticker_items' | 'components' - | 'stickers' >; /** @@ -1560,15 +1545,6 @@ export enum ComponentType { * Select menu for channels */ ChannelSelect, - - // EVERYTHING BELOW THIS LINE SHOULD BE OLD NAMES FOR RENAMED ENUM MEMBERS // - - /** - * Select menu for picking from defined text options - * - * @deprecated This is the old name for {@apilink ComponentType#StringSelect} - */ - SelectMenu = 3, } /** diff --git a/src/types/payloads/guild.ts b/src/types/payloads/guild.ts index 10d175e..df2967a 100644 --- a/src/types/payloads/guild.ts +++ b/src/types/payloads/guild.ts @@ -106,14 +106,6 @@ export interface APIGuild extends APIPartialGuild { * See https://en.wikipedia.org/wiki/Bit_field */ permissions?: Permissions; - /** - * Voice region id for the guild - * - * See https://discord.com/developers/docs/resources/voice#voice-region-object - * - * @deprecated This field has been deprecated in favor of `rtc_region` on the channel. - */ - region: string; /** * ID of afk channel */ diff --git a/src/types/payloads/invite.ts b/src/types/payloads/invite.ts index e7ad553..cb21747 100644 --- a/src/types/payloads/invite.ts +++ b/src/types/payloads/invite.ts @@ -6,7 +6,6 @@ import type { APIApplication } from './application'; import type { APIPartialChannel } from './channel'; import type { APIGuild } from './guild'; import type { APIGuildScheduledEvent } from './guildScheduledEvent'; -import type { APIInviteStageInstance } from './stageInstance'; import type { APIUser } from './user'; export type APIInviteGuild = Pick< @@ -80,12 +79,6 @@ export interface APIInvite { * The expiration date of this invite, returned from the `GET /invites/` endpoint when `with_expiration` is `true` */ expires_at?: string | null; - /** - * The stage instance data if there is a public stage instance in the stage channel this invite is for - * - * @deprecated - */ - stage_instance?: APIInviteStageInstance; /** * The guild scheduled event data, returned from the `GET /invites/` endpoint when `guild_scheduled_event_id` is a valid guild scheduled event id */ diff --git a/src/types/payloads/stageInstance.ts b/src/types/payloads/stageInstance.ts index 7dd8593..cfe428d 100644 --- a/src/types/payloads/stageInstance.ts +++ b/src/types/payloads/stageInstance.ts @@ -27,12 +27,6 @@ export interface APIStageInstance { * See https://discord.com/developers/docs/resources/stage-instance#stage-instance-object-privacy-level */ privacy_level: StageInstancePrivacyLevel; - /** - * Whether or not stage discovery is disabled - * - * @deprecated - */ - discoverable_disabled: boolean; /** * The id of the scheduled event for this stage instance */ @@ -43,16 +37,10 @@ export interface APIStageInstance { * https://discord.com/developers/docs/resources/stage-instance#stage-instance-object-privacy-level */ export enum StageInstancePrivacyLevel { - /** - * The stage instance is visible publicly, such as on stage discovery - * - * @deprecated - */ - Public = 1, /** * The stage instance is visible to only guild members */ - GuildOnly, + GuildOnly = 2, } /** diff --git a/src/types/payloads/sticker.ts b/src/types/payloads/sticker.ts index ae18b1f..f605e3d 100644 --- a/src/types/payloads/sticker.ts +++ b/src/types/payloads/sticker.ts @@ -29,12 +29,6 @@ export interface APISticker { * For guild stickers, the Discord name of a unicode emoji representing the sticker's expression. for standard stickers, a comma-separated list of related expressions. */ tags: string; - /** - * Previously the sticker asset hash, now an empty string - * - * @deprecated - */ - asset?: ''; /** * Type of sticker * diff --git a/src/types/payloads/teams.ts b/src/types/payloads/teams.ts index 9ee4500..01ccd11 100644 --- a/src/types/payloads/teams.ts +++ b/src/types/payloads/teams.ts @@ -41,12 +41,6 @@ export interface APITeamMember { * See https://discord.com/developers/docs/topics/teams#data-models-membership-state-enum */ membership_state: TeamMemberMembershipState; - /** - * Will always be `["*"]` - * - * @deprecated Use `role` instead - */ - permissions: ['*']; /** * The id of the parent team of which they are a member */ diff --git a/src/types/payloads/user.ts b/src/types/payloads/user.ts index e2b1d9b..f4b7d2f 100644 --- a/src/types/payloads/user.ts +++ b/src/types/payloads/user.ts @@ -83,14 +83,6 @@ export interface APIUser { * See https://discord.com/developers/docs/resources/user#user-object-user-flags */ public_flags?: UserFlags; - /** - * The user's avatar decoration hash - * - * See https://discord.com/developers/docs/reference#image-formatting - * - * @deprecated Use `avatar_decoration_data` instead - */ - avatar_decoration?: string | null; /** * The data for the user's avatar decoration * @@ -296,11 +288,6 @@ export enum ConnectionService { TikTok = 'tiktok', Twitch = 'twitch', X = 'twitter', - /** - * @deprecated This is the old name for {@apilink ConnectionService#X} - */ - - Twitter = X, Xbox = 'xbox', YouTube = 'youtube', } diff --git a/src/types/rest/guild.ts b/src/types/rest/guild.ts index 9b1b968..134e197 100644 --- a/src/types/rest/guild.ts +++ b/src/types/rest/guild.ts @@ -33,7 +33,6 @@ import type { DistributivePick, Nullable, StrictPartial, - StrictRequired, } from '../utils'; import type { RESTPutAPIChannelPermissionJSONBody } from './channel'; @@ -499,20 +498,6 @@ export interface RESTPatchAPIGuildMemberJSONBody { */ export type RESTPatchAPIGuildMemberResult = APIGuildMember; -/** - * https://discord.com/developers/docs/resources/guild#modify-current-user-nick - * - * @deprecated Use [Modify Current Member](https://discord.com/developers/docs/resources/guild#modify-current-member) instead. - */ -export interface RESTPatchAPICurrentGuildMemberNicknameJSONBody { - /** - * Value to set users nickname to - * - * Requires `CHANGE_NICKNAME` permission - */ - nick?: string | null | undefined; -} - /** * https://discord.com/developers/docs/resources/guild#modify-current-member */ @@ -525,14 +510,6 @@ export interface RESTPatchAPICurrentGuildMemberJSONBody { nick?: string | null | undefined; } -/** - * https://discord.com/developers/docs/resources/guild#modify-current-user-nick - * - * @deprecated Use [Modify Current Member](https://discord.com/developers/docs/resources/guild#modify-current-member) instead. - */ -export type RESTPatchAPICurrentGuildMemberNicknameResult = - StrictRequired; - /** * https://discord.com/developers/docs/resources/guild#add-guild-member-role */ @@ -582,12 +559,6 @@ export type RESTGetAPIGuildBanResult = APIBan; * https://discord.com/developers/docs/resources/guild#create-guild-ban */ export interface RESTPutAPIGuildBanJSONBody { - /** - * Number of days to delete messages for (0-7) - * - * @deprecated use `delete_message_seconds` instead - */ - delete_message_days?: number | undefined; /** * Number of seconds to delete messages for, between 0 and 604800 (7 days) */ diff --git a/src/types/rest/sticker.ts b/src/types/rest/sticker.ts index 831c86f..f7e87c4 100644 --- a/src/types/rest/sticker.ts +++ b/src/types/rest/sticker.ts @@ -17,13 +17,6 @@ export interface RESTGetStickerPacksResult { */ export type RESTGetAPIStickerPack = APIStickerPack; -/** - * https://discord.com/developers/docs/resources/sticker#list-sticker-packs - * - * @deprecated Use `RESTGetStickerPacksResult` instead - */ -export type RESTGetNitroStickerPacksResult = RESTGetStickerPacksResult; - /** * https://discord.com/developers/docs/resources/sticker#list-guild-stickers */ diff --git a/src/types/rest/voice.ts b/src/types/rest/voice.ts index ffe61a0..13e8522 100644 --- a/src/types/rest/voice.ts +++ b/src/types/rest/voice.ts @@ -14,8 +14,3 @@ export type RESTGetAPICurrentUserVoiceState = RESTGetAPIUserVoiceState; * https://discord.com/developers/docs/resources/voice#get-user-voice-state */ export type RESTGetAPIUserVoiceState = APIVoiceState; - -/** - * @deprecated This was exported with the wrong name, use `RESTGetAPIVoiceRegionsResult` instead - */ -export type GetAPIVoiceRegionsResult = RESTGetAPIVoiceRegionsResult; diff --git a/src/types/utils/index.ts b/src/types/utils/index.ts index 0140778..3801877 100644 --- a/src/types/utils/index.ts +++ b/src/types/utils/index.ts @@ -583,12 +583,6 @@ export const PermissionFlagsBits = { * Applies to channel types: Text, Voice, Stage */ ManageWebhooks: 1n << 29n, - /** - * Allows management and editing of emojis, stickers, and soundboard sounds - * - * @deprecated This is the old name for {@apilink PermissionFlagsBits#ManageGuildExpressions} - */ - ManageEmojisAndStickers: 1n << 30n, /** * Allows for editing and deleting emojis, stickers, and soundboard sounds created by all users */ @@ -771,35 +765,6 @@ export enum ChannelType { * See https://creator-support.discord.com/hc/articles/14346342766743 */ GuildMedia, - - // EVERYTHING BELOW THIS LINE SHOULD BE OLD NAMES FOR RENAMED ENUM MEMBERS // - - /** - * A channel that users can follow and crosspost into their own guild - * - * @deprecated This is the old name for {@apilink ChannelType#GuildAnnouncement} - * - * See https://support.discord.com/hc/articles/360032008192 - */ - GuildNews = 5, - /** - * A temporary sub-channel within a Guild Announcement channel - * - * @deprecated This is the old name for {@apilink ChannelType#AnnouncementThread} - */ - GuildNewsThread = 10, - /** - * A temporary sub-channel within a Guild Text channel - * - * @deprecated This is the old name for {@apilink ChannelType#PublicThread} - */ - GuildPublicThread = 11, - /** - * A temporary sub-channel within a Guild Text channel that is only viewable by those invited and those with the Manage Threads permission - * - * @deprecated This is the old name for {@apilink ChannelType#PrivateThread} - */ - GuildPrivateThread = 12, } export enum VideoQualityMode {