seyfert 2.1.1-dev-12506098636.0 → 2.1.1-dev-12511254197.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/lib/api/Routes/cdn.d.ts +2 -2
  2. package/lib/client/client.js +1 -3
  3. package/lib/commands/applications/chatcontext.js +2 -2
  4. package/lib/commands/applications/entrycontext.js +1 -1
  5. package/lib/commands/applications/menucontext.js +1 -1
  6. package/lib/components/componentcontext.js +1 -1
  7. package/lib/components/modalcontext.js +1 -1
  8. package/lib/events/hooks/guild.d.ts +0 -9
  9. package/lib/events/hooks/invite.d.ts +0 -3
  10. package/lib/events/hooks/message.d.ts +0 -4
  11. package/lib/events/hooks/presence.d.ts +0 -1
  12. package/lib/events/hooks/soundboard.d.ts +0 -1
  13. package/lib/events/hooks/stage.d.ts +0 -2
  14. package/lib/events/hooks/thread.d.ts +0 -3
  15. package/lib/structures/Interaction.d.ts +14 -1
  16. package/lib/structures/Interaction.js +1 -1
  17. package/lib/structures/User.js +2 -2
  18. package/lib/structures/extra/Permissions.d.ts +0 -1
  19. package/lib/types/gateway.d.ts +0 -10
  20. package/lib/types/payloads/_interactions/applicationCommands.d.ts +1 -15
  21. package/lib/types/payloads/_interactions/base.d.ts +1 -15
  22. package/lib/types/payloads/_interactions/messageComponents.d.ts +3 -3
  23. package/lib/types/payloads/_interactions/ping.d.ts +1 -1
  24. package/lib/types/payloads/_interactions/responses.d.ts +1 -10
  25. package/lib/types/payloads/_interactions/responses.js +0 -6
  26. package/lib/types/payloads/application.d.ts +0 -6
  27. package/lib/types/payloads/channel.d.ts +4 -24
  28. package/lib/types/payloads/channel.js +0 -7
  29. package/lib/types/payloads/guild.d.ts +0 -8
  30. package/lib/types/payloads/invite.d.ts +0 -7
  31. package/lib/types/payloads/stageInstance.d.ts +0 -12
  32. package/lib/types/payloads/stageInstance.js +0 -6
  33. package/lib/types/payloads/sticker.d.ts +0 -6
  34. package/lib/types/payloads/teams.d.ts +0 -6
  35. package/lib/types/payloads/user.d.ts +0 -12
  36. package/lib/types/payloads/user.js +0 -4
  37. package/lib/types/rest/guild.d.ts +1 -26
  38. package/lib/types/rest/sticker.d.ts +0 -6
  39. package/lib/types/rest/voice.d.ts +0 -4
  40. package/lib/types/utils/index.d.ts +1 -33
  41. package/lib/types/utils/index.js +0 -33
  42. package/package.json +1 -1
@@ -9,8 +9,8 @@ export interface CDNRoute {
9
9
  avatars(id: string): {
10
10
  get(hash: string, options?: CDNUrlOptions): string;
11
11
  };
12
- 'avatar-decorations'(userId: string): {
13
- get(hash: string, options?: BaseCDNUrlOptions): string;
12
+ 'avatar-decoration-presets'(asset: string): {
13
+ get(options?: BaseCDNUrlOptions): string;
14
14
  };
15
15
  'channel-icons'(channelId: string): {
16
16
  get(hash: string, options?: BaseCDNUrlOptions): string;
@@ -33,9 +33,7 @@ class Client extends base_1.BaseClient {
33
33
  }
34
34
  }
35
35
  get latency() {
36
- let acc = 0;
37
- this.gateway.forEach(s => (acc += s.latency));
38
- return acc / this.gateway.size;
36
+ return this.gateway.latency;
39
37
  }
40
38
  async loadEvents(dir) {
41
39
  dir ??= await this.getRC().then(x => x.locations.events);
@@ -81,7 +81,7 @@ class CommandContext extends basecontext_1.BaseContext {
81
81
  return (this.messageResponse = (await this.messageResponse.fetch()));
82
82
  }
83
83
  channel(mode = 'flow') {
84
- if (this.interaction?.channel && mode === 'cache')
84
+ if (this.interaction && mode === 'cache')
85
85
  return this.client.cache.adapter.isAsync ? Promise.resolve(this.interaction.channel) : this.interaction.channel;
86
86
  switch (mode) {
87
87
  case 'cache':
@@ -121,7 +121,7 @@ class CommandContext extends basecontext_1.BaseContext {
121
121
  return this.interaction?.guildId || this.message?.guildId;
122
122
  }
123
123
  get channelId() {
124
- return this.interaction?.channelId || this.message.channelId;
124
+ return this.interaction?.channel.id || this.message.channelId;
125
125
  }
126
126
  get author() {
127
127
  return this.interaction?.user || this.message.author;
@@ -73,7 +73,7 @@ class EntryPointContext extends basecontext_1.BaseContext {
73
73
  return this.interaction.guildId;
74
74
  }
75
75
  get channelId() {
76
- return this.interaction.channelId;
76
+ return this.interaction.channel.id;
77
77
  }
78
78
  get author() {
79
79
  return this.interaction.user;
@@ -88,7 +88,7 @@ class MenuCommandContext extends basecontext_1.BaseContext {
88
88
  return this.interaction.guildId;
89
89
  }
90
90
  get channelId() {
91
- return this.interaction.channelId;
91
+ return this.interaction.channel.id;
92
92
  }
93
93
  get author() {
94
94
  return this.interaction.user;
@@ -129,7 +129,7 @@ class ComponentContext extends basecontext_1.BaseContext {
129
129
  * Gets the ID of the channel of the interaction.
130
130
  */
131
131
  get channelId() {
132
- return this.interaction.channelId;
132
+ return this.interaction.channel.id;
133
133
  }
134
134
  /**
135
135
  * Gets the author of the interaction.
@@ -117,7 +117,7 @@ class ModalContext extends basecontext_1.BaseContext {
117
117
  * Gets the ID of the channel of the interaction.
118
118
  */
119
119
  get channelId() {
120
- return this.interaction.channelId;
120
+ return this.interaction.channel.id;
121
121
  }
122
122
  /**
123
123
  * Gets the author of the interaction.
@@ -494,7 +494,6 @@ export declare const GUILD_SCHEDULED_EVENT_CREATE: (_self: UsingClient, data: Ga
494
494
  flags?: import("../../types").UserFlags | undefined;
495
495
  premiumType?: import("../../types").UserPremiumType | undefined;
496
496
  publicFlags?: import("../../types").UserFlags | undefined;
497
- avatarDecoration?: string | null | undefined;
498
497
  avatarDecorationData?: import("../../types").APIAvatarDecorationData | null | undefined;
499
498
  } | undefined;
500
499
  userCount?: number | undefined;
@@ -542,7 +541,6 @@ export declare const GUILD_SCHEDULED_EVENT_CREATE: (_self: UsingClient, data: Ga
542
541
  flags?: import("../../types").UserFlags | undefined;
543
542
  premiumType?: import("../../types").UserPremiumType | undefined;
544
543
  publicFlags?: import("../../types").UserFlags | undefined;
545
- avatarDecoration?: string | null | undefined;
546
544
  avatarDecorationData?: import("../../types").APIAvatarDecorationData | null | undefined;
547
545
  } | undefined;
548
546
  userCount?: number | undefined;
@@ -592,7 +590,6 @@ export declare const GUILD_SCHEDULED_EVENT_CREATE: (_self: UsingClient, data: Ga
592
590
  flags?: import("../../types").UserFlags | undefined;
593
591
  premiumType?: import("../../types").UserPremiumType | undefined;
594
592
  publicFlags?: import("../../types").UserFlags | undefined;
595
- avatarDecoration?: string | null | undefined;
596
593
  avatarDecorationData?: import("../../types").APIAvatarDecorationData | null | undefined;
597
594
  } | undefined;
598
595
  userCount?: number | undefined;
@@ -641,7 +638,6 @@ export declare const GUILD_SCHEDULED_EVENT_UPDATE: (_self: UsingClient, data: Ga
641
638
  flags?: import("../../types").UserFlags | undefined;
642
639
  premiumType?: import("../../types").UserPremiumType | undefined;
643
640
  publicFlags?: import("../../types").UserFlags | undefined;
644
- avatarDecoration?: string | null | undefined;
645
641
  avatarDecorationData?: import("../../types").APIAvatarDecorationData | null | undefined;
646
642
  } | undefined;
647
643
  userCount?: number | undefined;
@@ -689,7 +685,6 @@ export declare const GUILD_SCHEDULED_EVENT_UPDATE: (_self: UsingClient, data: Ga
689
685
  flags?: import("../../types").UserFlags | undefined;
690
686
  premiumType?: import("../../types").UserPremiumType | undefined;
691
687
  publicFlags?: import("../../types").UserFlags | undefined;
692
- avatarDecoration?: string | null | undefined;
693
688
  avatarDecorationData?: import("../../types").APIAvatarDecorationData | null | undefined;
694
689
  } | undefined;
695
690
  userCount?: number | undefined;
@@ -739,7 +734,6 @@ export declare const GUILD_SCHEDULED_EVENT_UPDATE: (_self: UsingClient, data: Ga
739
734
  flags?: import("../../types").UserFlags | undefined;
740
735
  premiumType?: import("../../types").UserPremiumType | undefined;
741
736
  publicFlags?: import("../../types").UserFlags | undefined;
742
- avatarDecoration?: string | null | undefined;
743
737
  avatarDecorationData?: import("../../types").APIAvatarDecorationData | null | undefined;
744
738
  } | undefined;
745
739
  userCount?: number | undefined;
@@ -788,7 +782,6 @@ export declare const GUILD_SCHEDULED_EVENT_DELETE: (_self: UsingClient, data: Ga
788
782
  flags?: import("../../types").UserFlags | undefined;
789
783
  premiumType?: import("../../types").UserPremiumType | undefined;
790
784
  publicFlags?: import("../../types").UserFlags | undefined;
791
- avatarDecoration?: string | null | undefined;
792
785
  avatarDecorationData?: import("../../types").APIAvatarDecorationData | null | undefined;
793
786
  } | undefined;
794
787
  userCount?: number | undefined;
@@ -836,7 +829,6 @@ export declare const GUILD_SCHEDULED_EVENT_DELETE: (_self: UsingClient, data: Ga
836
829
  flags?: import("../../types").UserFlags | undefined;
837
830
  premiumType?: import("../../types").UserPremiumType | undefined;
838
831
  publicFlags?: import("../../types").UserFlags | undefined;
839
- avatarDecoration?: string | null | undefined;
840
832
  avatarDecorationData?: import("../../types").APIAvatarDecorationData | null | undefined;
841
833
  } | undefined;
842
834
  userCount?: number | undefined;
@@ -886,7 +878,6 @@ export declare const GUILD_SCHEDULED_EVENT_DELETE: (_self: UsingClient, data: Ga
886
878
  flags?: import("../../types").UserFlags | undefined;
887
879
  premiumType?: import("../../types").UserPremiumType | undefined;
888
880
  publicFlags?: import("../../types").UserFlags | undefined;
889
- avatarDecoration?: string | null | undefined;
890
881
  avatarDecorationData?: import("../../types").APIAvatarDecorationData | null | undefined;
891
882
  } | undefined;
892
883
  userCount?: number | undefined;
@@ -22,7 +22,6 @@ export declare const INVITE_CREATE: (_self: UsingClient, data: GatewayInviteCrea
22
22
  flags?: import("../../types").UserFlags | undefined;
23
23
  premiumType?: import("../../types").UserPremiumType | undefined;
24
24
  publicFlags?: import("../../types").UserFlags | undefined;
25
- avatarDecoration?: string | null | undefined;
26
25
  avatarDecorationData?: import("../../types").APIAvatarDecorationData | null | undefined;
27
26
  } | undefined;
28
27
  maxAge: number;
@@ -45,7 +44,6 @@ export declare const INVITE_CREATE: (_self: UsingClient, data: GatewayInviteCrea
45
44
  flags?: import("../../types").UserFlags | undefined;
46
45
  premiumType?: import("../../types").UserPremiumType | undefined;
47
46
  publicFlags?: import("../../types").UserFlags | undefined;
48
- avatarDecoration?: string | null | undefined;
49
47
  avatarDecorationData?: import("../../types").APIAvatarDecorationData | null | undefined;
50
48
  } | undefined;
51
49
  targetApplication?: {
@@ -60,7 +58,6 @@ export declare const INVITE_CREATE: (_self: UsingClient, data: GatewayInviteCrea
60
58
  termsOfServiceUrl?: string | undefined;
61
59
  privacyPolicyUrl?: string | undefined;
62
60
  owner?: import("../../types").APIUser | undefined;
63
- summary?: "" | undefined;
64
61
  verifyKey?: string | undefined;
65
62
  team?: import("../../types").APITeam | null | undefined;
66
63
  guildId?: string | undefined;
@@ -30,7 +30,6 @@ export declare const MESSAGE_REACTION_ADD: (_self: UsingClient, data: GatewayMes
30
30
  flags?: import("../../types").UserFlags | undefined;
31
31
  premiumType?: import("../../types").UserPremiumType | undefined;
32
32
  publicFlags?: import("../../types").UserFlags | undefined;
33
- avatarDecoration?: string | null | undefined;
34
33
  avatarDecorationData?: {
35
34
  asset: string;
36
35
  skuId: string;
@@ -68,7 +67,6 @@ export declare const MESSAGE_REACTION_ADD: (_self: UsingClient, data: GatewayMes
68
67
  flags?: import("../../types").UserFlags | undefined;
69
68
  premiumType?: import("../../types").UserPremiumType | undefined;
70
69
  publicFlags?: import("../../types").UserFlags | undefined;
71
- avatarDecoration?: string | null | undefined;
72
70
  avatarDecorationData?: import("../../types").APIAvatarDecorationData | null | undefined;
73
71
  } | undefined;
74
72
  requireColons?: boolean | undefined;
@@ -107,7 +105,6 @@ export declare const MESSAGE_REACTION_REMOVE: (_self: UsingClient, data: Gateway
107
105
  flags?: import("../../types").UserFlags | undefined;
108
106
  premiumType?: import("../../types").UserPremiumType | undefined;
109
107
  publicFlags?: import("../../types").UserFlags | undefined;
110
- avatarDecoration?: string | null | undefined;
111
108
  avatarDecorationData?: import("../../types").APIAvatarDecorationData | null | undefined;
112
109
  } | undefined;
113
110
  requireColons?: boolean | undefined;
@@ -145,7 +142,6 @@ export declare const MESSAGE_REACTION_REMOVE_EMOJI: (_self: UsingClient, data: G
145
142
  flags?: import("../../types").UserFlags | undefined;
146
143
  premiumType?: import("../../types").UserPremiumType | undefined;
147
144
  publicFlags?: import("../../types").UserFlags | undefined;
148
- avatarDecoration?: string | null | undefined;
149
145
  avatarDecorationData?: import("../../types").APIAvatarDecorationData | null | undefined;
150
146
  } | undefined;
151
147
  requireColons?: boolean | undefined;
@@ -18,7 +18,6 @@ export declare const PRESENCE_UPDATE: (self: UsingClient, data: GatewayPresenceU
18
18
  flags?: import("../../types").UserFlags | undefined;
19
19
  premiumType?: import("../../types").UserPremiumType | undefined;
20
20
  publicFlags?: import("../../types").UserFlags | undefined;
21
- avatarDecoration?: string | null | undefined;
22
21
  avatarDecorationData?: {
23
22
  asset: string;
24
23
  skuId: string;
@@ -44,7 +44,6 @@ export declare const SOUNDBOARD_SOUNDS: (_: UsingClient, data: GatewaySoundboard
44
44
  flags?: import("../../types").UserFlags | undefined;
45
45
  premiumType?: import("../../types").UserPremiumType | undefined;
46
46
  publicFlags?: import("../../types").UserFlags | undefined;
47
- avatarDecoration?: string | null | undefined;
48
47
  avatarDecorationData?: import("../../types").APIAvatarDecorationData | null | undefined;
49
48
  } | undefined;
50
49
  }[];
@@ -8,7 +8,6 @@ export declare const STAGE_INSTANCE_CREATE: (_self: UsingClient, data: GatewaySt
8
8
  channelId: string;
9
9
  topic: string;
10
10
  privacyLevel: import("../../types").StageInstancePrivacyLevel;
11
- discoverableDisabled: boolean;
12
11
  guildScheduledEventId?: string | undefined;
13
12
  };
14
13
  export declare const STAGE_INSTANCE_DELETE: (_self: UsingClient, data: GatewayStageInstanceDeleteDispatchData) => {
@@ -17,7 +16,6 @@ export declare const STAGE_INSTANCE_DELETE: (_self: UsingClient, data: GatewaySt
17
16
  channelId: string;
18
17
  topic: string;
19
18
  privacyLevel: import("../../types").StageInstancePrivacyLevel;
20
- discoverableDisabled: boolean;
21
19
  guildScheduledEventId?: string | undefined;
22
20
  };
23
21
  export declare const STAGE_INSTANCE_UPDATE: (self: UsingClient, data: GatewayStageInstanceUpdateDispatchData) => Promise<[stage: ObjectToLower<GatewayStageInstanceUpdateDispatchData>, old?: ReturnType<StageInstances["get"]>]>;
@@ -69,7 +69,6 @@ export declare const THREAD_LIST_SYNC: (_self: UsingClient, data: GatewayThreadL
69
69
  flags?: import("../../types").UserFlags | undefined;
70
70
  premiumType?: import("../../types").UserPremiumType | undefined;
71
71
  publicFlags?: import("../../types").UserFlags | undefined;
72
- avatarDecoration?: string | null | undefined;
73
72
  avatarDecorationData?: {
74
73
  asset: string;
75
74
  skuId: string;
@@ -113,7 +112,6 @@ export declare const THREAD_MEMBER_UPDATE: (_self: UsingClient, data: GatewayThr
113
112
  flags?: import("../../types").UserFlags | undefined;
114
113
  premiumType?: import("../../types").UserPremiumType | undefined;
115
114
  publicFlags?: import("../../types").UserFlags | undefined;
116
- avatarDecoration?: string | null | undefined;
117
115
  avatarDecorationData?: {
118
116
  asset: string;
119
117
  skuId: string;
@@ -161,7 +159,6 @@ export declare const THREAD_MEMBERS_UPDATE: (_self: UsingClient, data: GatewayTh
161
159
  flags?: import("../../types").UserFlags | undefined;
162
160
  premiumType?: import("../../types").UserPremiumType | undefined;
163
161
  publicFlags?: import("../../types").UserFlags | undefined;
164
- avatarDecoration?: string | null | undefined;
165
162
  avatarDecorationData?: {
166
163
  asset: string;
167
164
  skuId: string;
@@ -61,6 +61,7 @@ export declare class AutocompleteInteraction<FromGuild extends boolean = boolean
61
61
  data: ObjectToLower<APIApplicationCommandAutocompleteInteraction['data']>;
62
62
  options: OptionResolverStructure;
63
63
  entitlements: EntitlementStructure[];
64
+ channel: AllChannels;
64
65
  constructor(client: UsingClient, interaction: APIApplicationCommandAutocompleteInteraction, resolver?: OptionResolverStructure, __reply?: __InternalReplyFunction | undefined);
65
66
  getInput(): string;
66
67
  respond(choices: APICommandAutocompleteInteractionResponseCallbackData['choices']): Promise<undefined>;
@@ -69,6 +70,7 @@ export declare class AutocompleteInteraction<FromGuild extends boolean = boolean
69
70
  reply(..._args: unknown[]): Promise<any>;
70
71
  }
71
72
  export declare class Interaction<FromGuild extends boolean = boolean, Type extends APIInteraction = APIInteraction> extends BaseInteraction<FromGuild, Type> {
73
+ channel: AllChannels;
72
74
  fetchMessage(messageId: string): Promise<WebhookMessageStructure>;
73
75
  fetchResponse(): Promise<WebhookMessageStructure>;
74
76
  write<FR extends boolean = false>(body: InteractionCreateBodyRequest, withResponse?: FR): Promise<When<FR, WebhookMessageStructure, void>>;
@@ -82,12 +84,14 @@ export declare class Interaction<FromGuild extends boolean = boolean, Type exten
82
84
  }
83
85
  export declare class ApplicationCommandInteraction<FromGuild extends boolean = boolean, Type extends APIApplicationCommandInteraction = APIApplicationCommandInteraction> extends Interaction<FromGuild, Type> {
84
86
  type: ApplicationCommandType;
87
+ channel: AllChannels;
85
88
  respond(data: APIInteractionResponseChannelMessageWithSource | APIInteractionResponseDeferredChannelMessageWithSource | APIInteractionResponseDeferredMessageUpdate | APIInteractionResponseUpdateMessage): Promise<undefined>;
86
89
  }
87
90
  /**
88
91
  * Seyfert don't support activities, so this interaction is blank
89
92
  */
90
93
  export declare class EntryPointInteraction<FromGuild extends boolean = boolean> extends ApplicationCommandInteraction<FromGuild, APIEntryPointCommandInteraction> {
94
+ channel: AllChannels;
91
95
  withReponse(data?: InteractionCreateBodyRequest): Promise<EntryPointWithResponseResult>;
92
96
  isEntryPoint(): this is EntryPointInteraction;
93
97
  }
@@ -105,7 +109,6 @@ export interface ComponentInteraction extends ObjectToLower<Omit<APIMessageCompo
105
109
  }
106
110
  export declare class ComponentInteraction<FromGuild extends boolean = boolean, Type extends APIMessageComponentInteraction = APIMessageComponentInteraction> extends Interaction<FromGuild, Type> {
107
111
  data: ObjectToLower<APIMessageComponentInteraction['data']>;
108
- channelId: string;
109
112
  channel: AllChannels;
110
113
  type: InteractionType.MessageComponent;
111
114
  message: MessageStructure;
@@ -122,6 +125,7 @@ export declare class ButtonInteraction extends ComponentInteraction {
122
125
  export declare class SelectMenuInteraction extends ComponentInteraction {
123
126
  protected __reply?: __InternalReplyFunction | undefined;
124
127
  data: ObjectToLower<APIMessageComponentSelectMenuInteraction['data']>;
128
+ channel: AllChannels;
125
129
  constructor(client: UsingClient, interaction: APIMessageComponentSelectMenuInteraction, __reply?: __InternalReplyFunction | undefined);
126
130
  get values(): string[];
127
131
  }
@@ -131,11 +135,13 @@ export declare class StringSelectMenuInteraction<T extends any[] = string[]> ext
131
135
  values: T;
132
136
  }>;
133
137
  values: T;
138
+ channel: AllChannels;
134
139
  isStringSelectMenu(): this is StringSelectMenuInteraction;
135
140
  }
136
141
  export declare class ChannelSelectMenuInteraction extends SelectMenuInteraction {
137
142
  protected __reply?: __InternalReplyFunction | undefined;
138
143
  channels: AllChannels[];
144
+ channel: AllChannels;
139
145
  constructor(client: UsingClient, interaction: APIMessageComponentSelectMenuInteraction, __reply?: __InternalReplyFunction | undefined);
140
146
  isChannelSelectMenu(): this is ChannelSelectMenuInteraction;
141
147
  }
@@ -144,12 +150,14 @@ export declare class MentionableSelectMenuInteraction extends SelectMenuInteract
144
150
  roles: GuildRoleStructure[];
145
151
  members: InteractionGuildMemberStructure[];
146
152
  users: UserStructure[];
153
+ channel: AllChannels;
147
154
  constructor(client: UsingClient, interaction: APIMessageComponentSelectMenuInteraction, __reply?: __InternalReplyFunction | undefined);
148
155
  isMentionableSelectMenu(): this is MentionableSelectMenuInteraction;
149
156
  }
150
157
  export declare class RoleSelectMenuInteraction extends SelectMenuInteraction {
151
158
  protected __reply?: __InternalReplyFunction | undefined;
152
159
  roles: GuildRoleStructure[];
160
+ channel: AllChannels;
153
161
  constructor(client: UsingClient, interaction: APIMessageComponentSelectMenuInteraction, __reply?: __InternalReplyFunction | undefined);
154
162
  isRoleSelectMenu(): this is RoleSelectMenuInteraction;
155
163
  }
@@ -157,27 +165,32 @@ export declare class UserSelectMenuInteraction extends SelectMenuInteraction {
157
165
  protected __reply?: __InternalReplyFunction | undefined;
158
166
  members: InteractionGuildMemberStructure[];
159
167
  users: UserStructure[];
168
+ channel: AllChannels;
160
169
  constructor(client: UsingClient, interaction: APIMessageComponentSelectMenuInteraction, __reply?: __InternalReplyFunction | undefined);
161
170
  isUserSelectMenu(): this is UserSelectMenuInteraction;
162
171
  }
163
172
  export declare class ChatInputCommandInteraction<FromGuild extends boolean = boolean> extends ApplicationCommandInteraction<FromGuild, APIChatInputApplicationCommandInteraction> {
164
173
  data: ObjectToLower<APIChatInputApplicationCommandInteractionData>;
174
+ channel: AllChannels;
165
175
  isChatInput(): this is ChatInputCommandInteraction;
166
176
  }
167
177
  export declare class UserCommandInteraction<FromGuild extends boolean = boolean> extends ApplicationCommandInteraction<FromGuild, APIUserApplicationCommandInteraction> {
168
178
  type: ApplicationCommandType.User;
169
179
  data: ObjectToLower<APIUserApplicationCommandInteractionData>;
180
+ channel: AllChannels;
170
181
  isUser(): this is UserCommandInteraction;
171
182
  }
172
183
  export declare class MessageCommandInteraction<FromGuild extends boolean = boolean> extends ApplicationCommandInteraction<FromGuild, APIMessageApplicationCommandInteraction> {
173
184
  type: ApplicationCommandType.Message;
174
185
  data: ObjectToLower<APIMessageApplicationCommandInteractionData>;
186
+ channel: AllChannels;
175
187
  isMessage(): this is MessageCommandInteraction;
176
188
  }
177
189
  export interface ModalSubmitInteraction<FromGuild extends boolean = boolean> extends Omit<Interaction<FromGuild, APIModalSubmitInteraction>, 'modal'> {
178
190
  }
179
191
  export declare class ModalSubmitInteraction<FromGuild extends boolean = boolean> extends BaseInteraction<FromGuild> {
180
192
  data: ObjectToLower<APIModalSubmission>;
193
+ channel: AllChannels;
181
194
  update<WR extends boolean = false>(data: ComponentInteractionMessageUpdate, withResponse?: WR): Promise<When<WR, WebhookMessageStructure, undefined>>;
182
195
  deferUpdate<WR extends boolean = false>(withResponse?: WR): Promise<When<WR, WebhookMessageStructure, undefined>>;
183
196
  get customId(): string;
@@ -36,7 +36,7 @@ class BaseInteraction extends DiscordBase_1.DiscordBase {
36
36
  this.message = transformers_1.Transformers.Message(client, interaction.message);
37
37
  }
38
38
  this.appPermissions = new Permissions_1.PermissionsBitField(Number(interaction.app_permissions));
39
- if (interaction.channel) {
39
+ if ('channel' in interaction) {
40
40
  this.channel = (0, _1.channelFrom)(interaction.channel, client);
41
41
  }
42
42
  this.user = this.member?.user ?? transformers_1.Transformers.User(client, interaction.user);
@@ -36,9 +36,9 @@ class User extends DiscordBase_1.DiscordBase {
36
36
  return this.rest.cdn.avatars(this.id).get(this.avatar, options);
37
37
  }
38
38
  avatarDecorationURL(options) {
39
- if (!this.avatarDecoration)
39
+ if (!this.avatarDecorationData)
40
40
  return;
41
- return this.rest.cdn['avatar-decorations'](this.id).get(this.avatarDecoration, options);
41
+ return this.rest.cdn['avatar-decoration-presets'](this.avatarDecorationData.asset).get(options);
42
42
  }
43
43
  bannerURL(options) {
44
44
  if (!this.banner)
@@ -33,7 +33,6 @@ export declare class PermissionsBitField extends BitField<typeof PermissionFlags
33
33
  readonly ManageNicknames: bigint;
34
34
  readonly ManageRoles: bigint;
35
35
  readonly ManageWebhooks: bigint;
36
- readonly ManageEmojisAndStickers: bigint;
37
36
  readonly ManageGuildExpressions: bigint;
38
37
  readonly UseApplicationCommands: bigint;
39
38
  readonly RequestToSpeak: bigint;
@@ -1076,16 +1076,6 @@ export type GatewayThreadMemberUpdateDispatch = DataPayload<GatewayDispatchEvent
1076
1076
  export type GatewayThreadMemberUpdateDispatchData = APIThreadMember & {
1077
1077
  guild_id: Snowflake;
1078
1078
  };
1079
- /**
1080
- * @deprecated This type doesn't accurately reflect the Discord API.
1081
- * Use {@apilink GatewayThreadCreateDispatch},
1082
- * {@apilink GatewayThreadUpdateDispatch}, or
1083
- * {@apilink GatewayThreadDeleteDispatch} instead.
1084
- * https://discord.com/developers/docs/topics/gateway-events#thread-create
1085
- * https://discord.com/developers/docs/topics/gateway-events#thread-update
1086
- * https://discord.com/developers/docs/topics/gateway-events#thread-delete
1087
- */
1088
- export type GatewayThreadModifyDispatch = DataPayload<GatewayDispatchEvents.ThreadCreate | GatewayDispatchEvents.ThreadDelete | GatewayDispatchEvents.ThreadUpdate, GatewayChannelModifyDispatchData>;
1089
1079
  /**
1090
1080
  * https://discord.com/developers/docs/topics/gateway-events#thread-create
1091
1081
  */
@@ -59,20 +59,6 @@ export interface APIApplicationCommand {
59
59
  * Set of permissions represented as a bitset
60
60
  */
61
61
  default_member_permissions: Permissions | null;
62
- /**
63
- * Indicates whether the command is available in DMs with the app, only for globally-scoped commands. By default, commands are visible
64
- *
65
- * @deprecated Use `contexts` instead
66
- */
67
- dm_permission?: boolean;
68
- /**
69
- * Whether the command is enabled by default when the app is added to a guild
70
- *
71
- * If missing, this property should be assumed as `true`
72
- *
73
- * @deprecated Use `dm_permission` and/or `default_member_permissions` instead
74
- */
75
- default_permission?: boolean;
76
62
  /**
77
63
  * Indicates whether the command is age-restricted, defaults to `false`
78
64
  */
@@ -173,7 +159,7 @@ export type APIApplicationCommandInteractionData = APIChatInputApplicationComman
173
159
  /**
174
160
  * https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object
175
161
  */
176
- export type APIApplicationCommandInteractionWrapper<Data extends APIApplicationCommandInteractionData> = APIBaseInteraction<InteractionType.ApplicationCommand, Data> & Required<Pick<APIBaseInteraction<InteractionType.ApplicationCommand, Data>, 'app_permissions' | 'channel_id' | 'channel' | 'data'>>;
162
+ export type APIApplicationCommandInteractionWrapper<Data extends APIApplicationCommandInteractionData> = APIBaseInteraction<InteractionType.ApplicationCommand, Data> & Required<Pick<APIBaseInteraction<InteractionType.ApplicationCommand, Data>, 'app_permissions' | 'channel' | 'data'>>;
177
163
  /**
178
164
  * https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object
179
165
  */
@@ -104,13 +104,7 @@ export interface APIBaseInteraction<Type extends InteractionType, Data> {
104
104
  /**
105
105
  * The channel it was sent from
106
106
  */
107
- channel?: Partial<APIChannel> & Pick<APIChannel, 'id' | 'type'>;
108
- /**
109
- * The id of the channel it was sent from
110
- *
111
- * @deprecated Use {@apilink APIBaseInteraction#channel} instead
112
- */
113
- channel_id?: Snowflake;
107
+ channel: Partial<APIChannel> & Pick<APIChannel, 'id' | 'type'>;
114
108
  /**
115
109
  * Guild member data for the invoking user, including permissions
116
110
  *
@@ -187,15 +181,7 @@ export interface APIInteractionDataResolved {
187
181
  channels?: Record<Snowflake, APIInteractionDataResolvedChannel>;
188
182
  attachments?: Record<Snowflake, APIAttachment>;
189
183
  }
190
- /**
191
- * @deprecated Renamed to `APIInteractionDataResolved`
192
- */
193
- export type APIChatInputApplicationCommandInteractionDataResolved = APIInteractionDataResolved;
194
184
  /**
195
185
  * `users` and optional `members` from APIInteractionDataResolved, for user commands and user selects
196
186
  */
197
187
  export type APIUserInteractionDataResolved = Pick<APIInteractionDataResolved, 'members'> & Required<Pick<APIInteractionDataResolved, 'users'>>;
198
- /**
199
- * @deprecated Renamed to `APIUserInteractionDataResolved`
200
- */
201
- export type APIUserApplicationCommandInteractionDataResolved = APIUserInteractionDataResolved;
@@ -2,9 +2,9 @@ import type { Snowflake } from '../../index';
2
2
  import type { ComponentType } from '../channel';
3
3
  import type { APIBaseInteraction, InteractionType } from '../interactions';
4
4
  import type { APIDMInteractionWrapper, APIGuildInteractionWrapper, APIInteractionDataResolved, APIUserInteractionDataResolved } from './base';
5
- export type APIMessageComponentInteraction = APIBaseInteraction<InteractionType.MessageComponent, APIMessageComponentInteractionData> & Required<Pick<APIBaseInteraction<InteractionType.MessageComponent, APIMessageComponentInteractionData>, 'app_permissions' | 'channel_id' | 'channel' | 'data' | 'message'>>;
6
- export type APIMessageComponentButtonInteraction = APIBaseInteraction<InteractionType.MessageComponent, APIMessageButtonInteractionData> & Required<Pick<APIBaseInteraction<InteractionType.MessageComponent, APIMessageButtonInteractionData>, 'app_permissions' | 'channel_id' | 'channel' | 'data' | 'message'>>;
7
- export type APIMessageComponentSelectMenuInteraction = APIBaseInteraction<InteractionType.MessageComponent, APIMessageSelectMenuInteractionData> & Required<Pick<APIBaseInteraction<InteractionType.MessageComponent, APIMessageSelectMenuInteractionData>, 'app_permissions' | 'channel_id' | 'channel' | 'data' | 'message'>>;
5
+ export type APIMessageComponentInteraction = APIBaseInteraction<InteractionType.MessageComponent, APIMessageComponentInteractionData> & Required<Pick<APIBaseInteraction<InteractionType.MessageComponent, APIMessageComponentInteractionData>, 'app_permissions' | 'channel' | 'data' | 'message'>>;
6
+ export type APIMessageComponentButtonInteraction = APIBaseInteraction<InteractionType.MessageComponent, APIMessageButtonInteractionData> & Required<Pick<APIBaseInteraction<InteractionType.MessageComponent, APIMessageButtonInteractionData>, 'app_permissions' | 'channel' | 'data' | 'message'>>;
7
+ export type APIMessageComponentSelectMenuInteraction = APIBaseInteraction<InteractionType.MessageComponent, APIMessageSelectMenuInteractionData> & Required<Pick<APIBaseInteraction<InteractionType.MessageComponent, APIMessageSelectMenuInteractionData>, 'app_permissions' | 'channel' | 'data' | 'message'>>;
8
8
  export type APIMessageComponentInteractionData = APIMessageButtonInteractionData | APIMessageSelectMenuInteractionData;
9
9
  export interface APIMessageComponentBaseInteractionData<CType extends ComponentType> {
10
10
  /**
@@ -1,3 +1,3 @@
1
1
  import type { APIBaseInteraction } from './base';
2
2
  import type { InteractionType } from './responses';
3
- export type APIPingInteraction = Omit<APIBaseInteraction<InteractionType.Ping, never>, 'locale'>;
3
+ export type APIPingInteraction = Omit<APIBaseInteraction<InteractionType.Ping, never>, 'locale' | 'channel'>;
@@ -16,7 +16,7 @@ export declare enum InteractionType {
16
16
  /**
17
17
  * https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-response-object
18
18
  */
19
- export type APIInteractionResponse = APIApplicationCommandAutocompleteResponse | APIInteractionResponseChannelMessageWithSource | APIInteractionResponseDeferredChannelMessageWithSource | APIInteractionResponseDeferredMessageUpdate | APIInteractionResponsePong | APIInteractionResponseUpdateMessage | APIModalInteractionResponse | APIInteractionResponseLaunchActivity | APIPremiumRequiredInteractionResponse;
19
+ export type APIInteractionResponse = APIApplicationCommandAutocompleteResponse | APIInteractionResponseChannelMessageWithSource | APIInteractionResponseDeferredChannelMessageWithSource | APIInteractionResponseDeferredMessageUpdate | APIInteractionResponsePong | APIInteractionResponseUpdateMessage | APIModalInteractionResponse | APIInteractionResponseLaunchActivity;
20
20
  export interface APIInteractionResponsePong {
21
21
  type: InteractionResponseType.Pong;
22
22
  }
@@ -28,9 +28,6 @@ export interface APIModalInteractionResponse {
28
28
  type: InteractionResponseType.Modal;
29
29
  data: APIModalInteractionResponseCallbackData;
30
30
  }
31
- export interface APIPremiumRequiredInteractionResponse {
32
- type: InteractionResponseType.PremiumRequired;
33
- }
34
31
  export interface APIInteractionResponseChannelMessageWithSource {
35
32
  type: InteractionResponseType.ChannelMessageWithSource;
36
33
  data: APIInteractionResponseCallbackData;
@@ -81,12 +78,6 @@ export declare enum InteractionResponseType {
81
78
  * Respond to an interaction with an modal for a user to fill-out
82
79
  */
83
80
  Modal = 9,
84
- /**
85
- * Respond to an interaction with an upgrade button, only available for apps with monetization enabled
86
- *
87
- * @deprecated See https://discord.com/developers/docs/change-log#premium-apps-new-premium-button-style-deep-linking-url-schemes
88
- */
89
- PremiumRequired = 10,
90
81
  /**
91
82
  * Launch the Activity associated with the app. Only available for apps with Activities enabled
92
83
  */
@@ -45,12 +45,6 @@ var InteractionResponseType;
45
45
  * Respond to an interaction with an modal for a user to fill-out
46
46
  */
47
47
  InteractionResponseType[InteractionResponseType["Modal"] = 9] = "Modal";
48
- /**
49
- * Respond to an interaction with an upgrade button, only available for apps with monetization enabled
50
- *
51
- * @deprecated See https://discord.com/developers/docs/change-log#premium-apps-new-premium-button-style-deep-linking-url-schemes
52
- */
53
- InteractionResponseType[InteractionResponseType["PremiumRequired"] = 10] = "PremiumRequired";
54
48
  /**
55
49
  * Launch the Activity associated with the app. Only available for apps with Activities enabled
56
50
  */
@@ -58,12 +58,6 @@ export interface APIApplication {
58
58
  * See https://discord.com/developers/docs/resources/user#user-object
59
59
  */
60
60
  owner?: APIUser;
61
- /**
62
- * An empty string
63
- *
64
- * @deprecated This field will be removed in v11
65
- */
66
- summary: '';
67
61
  /**
68
62
  * The hexadecimal encoded key for verification in interactions and the GameSDK's GetTicket function
69
63
  *
@@ -6,10 +6,10 @@ import type { ChannelType, OverwriteType, Permissions, Snowflake, VideoQualityMo
6
6
  import type { APIApplication } from './application';
7
7
  import type { APIPartialEmoji } from './emoji';
8
8
  import type { APIGuildMember } from './guild';
9
- import type { APIInteractionDataResolved, APIMessageInteraction, APIMessageInteractionMetadata } from './interactions';
9
+ import type { APIInteractionDataResolved, APIMessageInteractionMetadata } from './interactions';
10
10
  import type { APIRole } from './permissions';
11
11
  import type { APIPoll } from './poll';
12
- import type { APISticker, APIStickerItem } from './sticker';
12
+ import type { APIStickerItem } from './sticker';
13
13
  import type { APIUser } from './user';
14
14
  /**
15
15
  * Not documented, but partial only includes id, name, and type
@@ -512,12 +512,6 @@ export interface APIMessage {
512
512
  * @unstable
513
513
  */
514
514
  interaction_metadata?: APIMessageInteractionMetadata;
515
- /**
516
- * Sent if the message is a response to an Interaction
517
- *
518
- * @deprecated In favor of `interaction_metadata`
519
- */
520
- interaction?: APIMessageInteraction;
521
515
  /**
522
516
  * Sent if a thread was started from this message
523
517
  */
@@ -539,14 +533,6 @@ export interface APIMessage {
539
533
  * See https://discord.com/developers/docs/resources/sticker#sticker-item-object
540
534
  */
541
535
  sticker_items?: APIStickerItem[];
542
- /**
543
- * The stickers sent with the message
544
- *
545
- * See https://discord.com/developers/docs/resources/sticker#sticker-object
546
- *
547
- * @deprecated Use `sticker_items` instead
548
- */
549
- stickers?: APISticker[];
550
536
  /**
551
537
  * A generally increasing integer (there may be gaps or duplicates) that represents the approximate position of the message in a thread
552
538
  *
@@ -689,7 +675,7 @@ export interface APIMessageSnapshot {
689
675
  */
690
676
  message: APIMessageSnapshotFields;
691
677
  }
692
- export type APIMessageSnapshotFields = Pick<APIMessage, 'attachments' | 'content' | 'edited_timestamp' | 'embeds' | 'flags' | 'mention_roles' | 'mentions' | 'timestamp' | 'type' | 'sticker_items' | 'components' | 'stickers'>;
678
+ export type APIMessageSnapshotFields = Pick<APIMessage, 'attachments' | 'content' | 'edited_timestamp' | 'embeds' | 'flags' | 'mention_roles' | 'mentions' | 'timestamp' | 'type' | 'sticker_items' | 'components'>;
693
679
  /**
694
680
  * https://discord.com/developers/docs/resources/channel#message-object-message-activity-types
695
681
  */
@@ -1452,13 +1438,7 @@ export declare enum ComponentType {
1452
1438
  /**
1453
1439
  * Select menu for channels
1454
1440
  */
1455
- ChannelSelect = 8,
1456
- /**
1457
- * Select menu for picking from defined text options
1458
- *
1459
- * @deprecated This is the old name for {@apilink ComponentType#StringSelect}
1460
- */
1461
- SelectMenu = 3
1441
+ ChannelSelect = 8
1462
1442
  }
1463
1443
  /**
1464
1444
  * https://discord.com/developers/docs/interactions/message-components#action-rows
@@ -294,13 +294,6 @@ var ComponentType;
294
294
  * Select menu for channels
295
295
  */
296
296
  ComponentType[ComponentType["ChannelSelect"] = 8] = "ChannelSelect";
297
- // EVERYTHING BELOW THIS LINE SHOULD BE OLD NAMES FOR RENAMED ENUM MEMBERS //
298
- /**
299
- * Select menu for picking from defined text options
300
- *
301
- * @deprecated This is the old name for {@apilink ComponentType#StringSelect}
302
- */
303
- ComponentType[ComponentType["SelectMenu"] = 3] = "SelectMenu";
304
297
  })(ComponentType || (exports.ComponentType = ComponentType = {}));
305
298
  /**
306
299
  * https://discord.com/developers/docs/interactions/message-components#button-object-button-styles
@@ -102,14 +102,6 @@ export interface APIGuild extends APIPartialGuild {
102
102
  * See https://en.wikipedia.org/wiki/Bit_field
103
103
  */
104
104
  permissions?: Permissions;
105
- /**
106
- * Voice region id for the guild
107
- *
108
- * See https://discord.com/developers/docs/resources/voice#voice-region-object
109
- *
110
- * @deprecated This field has been deprecated in favor of `rtc_region` on the channel.
111
- */
112
- region: string;
113
105
  /**
114
106
  * ID of afk channel
115
107
  */
@@ -5,7 +5,6 @@ import type { APIApplication } from './application';
5
5
  import type { APIPartialChannel } from './channel';
6
6
  import type { APIGuild } from './guild';
7
7
  import type { APIGuildScheduledEvent } from './guildScheduledEvent';
8
- import type { APIInviteStageInstance } from './stageInstance';
9
8
  import type { APIUser } from './user';
10
9
  export type APIInviteGuild = Pick<APIGuild, 'banner' | 'description' | 'features' | 'icon' | 'id' | 'name' | 'nsfw_level' | 'premium_subscription_count' | 'splash' | 'vanity_url_code' | 'verification_level'>;
11
10
  /**
@@ -64,12 +63,6 @@ export interface APIInvite {
64
63
  * The expiration date of this invite, returned from the `GET /invites/<code>` endpoint when `with_expiration` is `true`
65
64
  */
66
65
  expires_at?: string | null;
67
- /**
68
- * The stage instance data if there is a public stage instance in the stage channel this invite is for
69
- *
70
- * @deprecated
71
- */
72
- stage_instance?: APIInviteStageInstance;
73
66
  /**
74
67
  * The guild scheduled event data, returned from the `GET /invites/<code>` endpoint when `guild_scheduled_event_id` is a valid guild scheduled event id
75
68
  */
@@ -26,12 +26,6 @@ export interface APIStageInstance {
26
26
  * See https://discord.com/developers/docs/resources/stage-instance#stage-instance-object-privacy-level
27
27
  */
28
28
  privacy_level: StageInstancePrivacyLevel;
29
- /**
30
- * Whether or not stage discovery is disabled
31
- *
32
- * @deprecated
33
- */
34
- discoverable_disabled: boolean;
35
29
  /**
36
30
  * The id of the scheduled event for this stage instance
37
31
  */
@@ -41,12 +35,6 @@ export interface APIStageInstance {
41
35
  * https://discord.com/developers/docs/resources/stage-instance#stage-instance-object-privacy-level
42
36
  */
43
37
  export declare enum StageInstancePrivacyLevel {
44
- /**
45
- * The stage instance is visible publicly, such as on stage discovery
46
- *
47
- * @deprecated
48
- */
49
- Public = 1,
50
38
  /**
51
39
  * The stage instance is visible to only guild members
52
40
  */
@@ -6,12 +6,6 @@ exports.StageInstancePrivacyLevel = void 0;
6
6
  */
7
7
  var StageInstancePrivacyLevel;
8
8
  (function (StageInstancePrivacyLevel) {
9
- /**
10
- * The stage instance is visible publicly, such as on stage discovery
11
- *
12
- * @deprecated
13
- */
14
- StageInstancePrivacyLevel[StageInstancePrivacyLevel["Public"] = 1] = "Public";
15
9
  /**
16
10
  * The stage instance is visible to only guild members
17
11
  */
@@ -27,12 +27,6 @@ export interface APISticker {
27
27
  * 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.
28
28
  */
29
29
  tags: string;
30
- /**
31
- * Previously the sticker asset hash, now an empty string
32
- *
33
- * @deprecated
34
- */
35
- asset?: '';
36
30
  /**
37
31
  * Type of sticker
38
32
  *
@@ -38,12 +38,6 @@ export interface APITeamMember {
38
38
  * See https://discord.com/developers/docs/topics/teams#data-models-membership-state-enum
39
39
  */
40
40
  membership_state: TeamMemberMembershipState;
41
- /**
42
- * Will always be `["*"]`
43
- *
44
- * @deprecated Use `role` instead
45
- */
46
- permissions: ['*'];
47
41
  /**
48
42
  * The id of the parent team of which they are a member
49
43
  */
@@ -81,14 +81,6 @@ export interface APIUser {
81
81
  * See https://discord.com/developers/docs/resources/user#user-object-user-flags
82
82
  */
83
83
  public_flags?: UserFlags;
84
- /**
85
- * The user's avatar decoration hash
86
- *
87
- * See https://discord.com/developers/docs/reference#image-formatting
88
- *
89
- * @deprecated Use `avatar_decoration_data` instead
90
- */
91
- avatar_decoration?: string | null;
92
84
  /**
93
85
  * The data for the user's avatar decoration
94
86
  *
@@ -290,10 +282,6 @@ export declare enum ConnectionService {
290
282
  TikTok = "tiktok",
291
283
  Twitch = "twitch",
292
284
  X = "twitter",
293
- /**
294
- * @deprecated This is the old name for {@apilink ConnectionService#X}
295
- */
296
- Twitter = "twitter",
297
285
  Xbox = "xbox",
298
286
  YouTube = "youtube"
299
287
  }
@@ -150,10 +150,6 @@ var ConnectionService;
150
150
  ConnectionService["TikTok"] = "tiktok";
151
151
  ConnectionService["Twitch"] = "twitch";
152
152
  ConnectionService["X"] = "twitter";
153
- /**
154
- * @deprecated This is the old name for {@apilink ConnectionService#X}
155
- */
156
- ConnectionService["Twitter"] = "twitter";
157
153
  ConnectionService["Xbox"] = "xbox";
158
154
  ConnectionService["YouTube"] = "youtube";
159
155
  })(ConnectionService || (exports.ConnectionService = ConnectionService = {}));
@@ -1,6 +1,6 @@
1
1
  import type { Permissions, Snowflake } from '..';
2
2
  import type { APIBan, APIChannel, APIDMChannel, APIExtendedInvite, APIGroupDMChannel, APIGuild, APIGuildIntegration, APIGuildMember, APIGuildMembershipScreening, APIGuildOnboarding, APIGuildOnboardingPrompt, APIGuildOnboardingPromptOption, APIGuildPreview, APIGuildWelcomeScreen, APIGuildWidget, APIGuildWidgetSettings, APIRole, APIThreadList, APIVoiceRegion, GuildDefaultMessageNotifications, GuildExplicitContentFilter, GuildFeature, GuildMFALevel, GuildSystemChannelFlags, GuildVerificationLevel, GuildWidgetStyle } from '../payloads';
3
- import type { AddUndefinedToPossiblyUndefinedPropertiesOfInterface, DistributiveOmit, DistributivePick, Nullable, StrictPartial, StrictRequired } from '../utils';
3
+ import type { AddUndefinedToPossiblyUndefinedPropertiesOfInterface, DistributiveOmit, DistributivePick, Nullable, StrictPartial } from '../utils';
4
4
  import type { RESTPutAPIChannelPermissionJSONBody } from './channel';
5
5
  export interface APIGuildCreateOverwrite extends RESTPutAPIChannelPermissionJSONBody {
6
6
  id: number | string;
@@ -416,19 +416,6 @@ export interface RESTPatchAPIGuildMemberJSONBody {
416
416
  * https://discord.com/developers/docs/resources/guild#add-guild-member
417
417
  */
418
418
  export type RESTPatchAPIGuildMemberResult = APIGuildMember;
419
- /**
420
- * https://discord.com/developers/docs/resources/guild#modify-current-user-nick
421
- *
422
- * @deprecated Use [Modify Current Member](https://discord.com/developers/docs/resources/guild#modify-current-member) instead.
423
- */
424
- export interface RESTPatchAPICurrentGuildMemberNicknameJSONBody {
425
- /**
426
- * Value to set users nickname to
427
- *
428
- * Requires `CHANGE_NICKNAME` permission
429
- */
430
- nick?: string | null | undefined;
431
- }
432
419
  /**
433
420
  * https://discord.com/developers/docs/resources/guild#modify-current-member
434
421
  */
@@ -440,12 +427,6 @@ export interface RESTPatchAPICurrentGuildMemberJSONBody {
440
427
  */
441
428
  nick?: string | null | undefined;
442
429
  }
443
- /**
444
- * https://discord.com/developers/docs/resources/guild#modify-current-user-nick
445
- *
446
- * @deprecated Use [Modify Current Member](https://discord.com/developers/docs/resources/guild#modify-current-member) instead.
447
- */
448
- export type RESTPatchAPICurrentGuildMemberNicknameResult = StrictRequired<RESTPatchAPICurrentGuildMemberNicknameJSONBody>;
449
430
  /**
450
431
  * https://discord.com/developers/docs/resources/guild#add-guild-member-role
451
432
  */
@@ -489,12 +470,6 @@ export type RESTGetAPIGuildBanResult = APIBan;
489
470
  * https://discord.com/developers/docs/resources/guild#create-guild-ban
490
471
  */
491
472
  export interface RESTPutAPIGuildBanJSONBody {
492
- /**
493
- * Number of days to delete messages for (0-7)
494
- *
495
- * @deprecated use `delete_message_seconds` instead
496
- */
497
- delete_message_days?: number | undefined;
498
473
  /**
499
474
  * Number of seconds to delete messages for, between 0 and 604800 (7 days)
500
475
  */
@@ -13,12 +13,6 @@ export interface RESTGetStickerPacksResult {
13
13
  * https://discord.com/developers/docs/resources/sticker#get-sticker-pack
14
14
  */
15
15
  export type RESTGetAPIStickerPack = APIStickerPack;
16
- /**
17
- * https://discord.com/developers/docs/resources/sticker#list-sticker-packs
18
- *
19
- * @deprecated Use `RESTGetStickerPacksResult` instead
20
- */
21
- export type RESTGetNitroStickerPacksResult = RESTGetStickerPacksResult;
22
16
  /**
23
17
  * https://discord.com/developers/docs/resources/sticker#list-guild-stickers
24
18
  */
@@ -11,7 +11,3 @@ export type RESTGetAPICurrentUserVoiceState = RESTGetAPIUserVoiceState;
11
11
  * https://discord.com/developers/docs/resources/voice#get-user-voice-state
12
12
  */
13
13
  export type RESTGetAPIUserVoiceState = APIVoiceState;
14
- /**
15
- * @deprecated This was exported with the wrong name, use `RESTGetAPIVoiceRegionsResult` instead
16
- */
17
- export type GetAPIVoiceRegionsResult = RESTGetAPIVoiceRegionsResult;
@@ -552,12 +552,6 @@ export declare const PermissionFlagsBits: {
552
552
  * Applies to channel types: Text, Voice, Stage
553
553
  */
554
554
  readonly ManageWebhooks: bigint;
555
- /**
556
- * Allows management and editing of emojis, stickers, and soundboard sounds
557
- *
558
- * @deprecated This is the old name for {@apilink PermissionFlagsBits#ManageGuildExpressions}
559
- */
560
- readonly ManageEmojisAndStickers: bigint;
561
555
  /**
562
556
  * Allows for editing and deleting emojis, stickers, and soundboard sounds created by all users
563
557
  */
@@ -731,33 +725,7 @@ export declare enum ChannelType {
731
725
  *
732
726
  * See https://creator-support.discord.com/hc/articles/14346342766743
733
727
  */
734
- GuildMedia = 16,
735
- /**
736
- * A channel that users can follow and crosspost into their own guild
737
- *
738
- * @deprecated This is the old name for {@apilink ChannelType#GuildAnnouncement}
739
- *
740
- * See https://support.discord.com/hc/articles/360032008192
741
- */
742
- GuildNews = 5,
743
- /**
744
- * A temporary sub-channel within a Guild Announcement channel
745
- *
746
- * @deprecated This is the old name for {@apilink ChannelType#AnnouncementThread}
747
- */
748
- GuildNewsThread = 10,
749
- /**
750
- * A temporary sub-channel within a Guild Text channel
751
- *
752
- * @deprecated This is the old name for {@apilink ChannelType#PublicThread}
753
- */
754
- GuildPublicThread = 11,
755
- /**
756
- * A temporary sub-channel within a Guild Text channel that is only viewable by those invited and those with the Manage Threads permission
757
- *
758
- * @deprecated This is the old name for {@apilink ChannelType#PrivateThread}
759
- */
760
- GuildPrivateThread = 12
728
+ GuildMedia = 16
761
729
  }
762
730
  export declare enum VideoQualityMode {
763
731
  /**
@@ -537,12 +537,6 @@ exports.PermissionFlagsBits = {
537
537
  * Applies to channel types: Text, Voice, Stage
538
538
  */
539
539
  ManageWebhooks: 1n << 29n,
540
- /**
541
- * Allows management and editing of emojis, stickers, and soundboard sounds
542
- *
543
- * @deprecated This is the old name for {@apilink PermissionFlagsBits#ManageGuildExpressions}
544
- */
545
- ManageEmojisAndStickers: 1n << 30n,
546
540
  /**
547
541
  * Allows for editing and deleting emojis, stickers, and soundboard sounds created by all users
548
542
  */
@@ -724,33 +718,6 @@ var ChannelType;
724
718
  * See https://creator-support.discord.com/hc/articles/14346342766743
725
719
  */
726
720
  ChannelType[ChannelType["GuildMedia"] = 16] = "GuildMedia";
727
- // EVERYTHING BELOW THIS LINE SHOULD BE OLD NAMES FOR RENAMED ENUM MEMBERS //
728
- /**
729
- * A channel that users can follow and crosspost into their own guild
730
- *
731
- * @deprecated This is the old name for {@apilink ChannelType#GuildAnnouncement}
732
- *
733
- * See https://support.discord.com/hc/articles/360032008192
734
- */
735
- ChannelType[ChannelType["GuildNews"] = 5] = "GuildNews";
736
- /**
737
- * A temporary sub-channel within a Guild Announcement channel
738
- *
739
- * @deprecated This is the old name for {@apilink ChannelType#AnnouncementThread}
740
- */
741
- ChannelType[ChannelType["GuildNewsThread"] = 10] = "GuildNewsThread";
742
- /**
743
- * A temporary sub-channel within a Guild Text channel
744
- *
745
- * @deprecated This is the old name for {@apilink ChannelType#PublicThread}
746
- */
747
- ChannelType[ChannelType["GuildPublicThread"] = 11] = "GuildPublicThread";
748
- /**
749
- * A temporary sub-channel within a Guild Text channel that is only viewable by those invited and those with the Manage Threads permission
750
- *
751
- * @deprecated This is the old name for {@apilink ChannelType#PrivateThread}
752
- */
753
- ChannelType[ChannelType["GuildPrivateThread"] = 12] = "GuildPrivateThread";
754
721
  })(ChannelType || (exports.ChannelType = ChannelType = {}));
755
722
  var VideoQualityMode;
756
723
  (function (VideoQualityMode) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "seyfert",
3
- "version": "2.1.1-dev-12506098636.0",
3
+ "version": "2.1.1-dev-12511254197.0",
4
4
  "description": "The most advanced framework for discord bots",
5
5
  "main": "./lib/index.js",
6
6
  "module": "./lib/index.js",