Skip to content

Commit 25b89d4

Browse files
authored
Revert "fix: change resolved index types to string (#169)"
This reverts commit d338409.
1 parent f299507 commit 25b89d4

File tree

4 files changed

+16
-16
lines changed

4 files changed

+16
-16
lines changed

deno/payloads/v8/_interactions/slashCommands.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -118,10 +118,10 @@ export interface APIApplicationCommandInteractionData {
118118
name: string;
119119
options?: APIApplicationCommandInteractionDataOption[];
120120
resolved?: {
121-
users?: Record<string, APIUser>;
122-
roles?: Record<string, APIRole>;
123-
members?: Record<string, APIInteractionDataResolvedGuildMember>;
124-
channels?: Record<string, APIInteractionDataResolvedChannel>;
121+
users?: Record<Snowflake, APIUser>;
122+
roles?: Record<Snowflake, APIRole>;
123+
members?: Record<Snowflake, APIInteractionDataResolvedGuildMember>;
124+
channels?: Record<Snowflake, APIInteractionDataResolvedChannel>;
125125
};
126126
}
127127

deno/payloads/v9/_interactions/slashCommands.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -118,10 +118,10 @@ export interface APIApplicationCommandInteractionData {
118118
name: string;
119119
options?: APIApplicationCommandInteractionDataOption[];
120120
resolved?: {
121-
users?: Record<string, APIUser>;
122-
roles?: Record<string, APIRole>;
123-
members?: Record<string, APIInteractionDataResolvedGuildMember>;
124-
channels?: Record<string, APIInteractionDataResolvedChannel>;
121+
users?: Record<Snowflake, APIUser>;
122+
roles?: Record<Snowflake, APIRole>;
123+
members?: Record<Snowflake, APIInteractionDataResolvedGuildMember>;
124+
channels?: Record<Snowflake, APIInteractionDataResolvedChannel>;
125125
};
126126
}
127127

payloads/v8/_interactions/slashCommands.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -118,10 +118,10 @@ export interface APIApplicationCommandInteractionData {
118118
name: string;
119119
options?: APIApplicationCommandInteractionDataOption[];
120120
resolved?: {
121-
users?: Record<string, APIUser>;
122-
roles?: Record<string, APIRole>;
123-
members?: Record<string, APIInteractionDataResolvedGuildMember>;
124-
channels?: Record<string, APIInteractionDataResolvedChannel>;
121+
users?: Record<Snowflake, APIUser>;
122+
roles?: Record<Snowflake, APIRole>;
123+
members?: Record<Snowflake, APIInteractionDataResolvedGuildMember>;
124+
channels?: Record<Snowflake, APIInteractionDataResolvedChannel>;
125125
};
126126
}
127127

payloads/v9/_interactions/slashCommands.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -118,10 +118,10 @@ export interface APIApplicationCommandInteractionData {
118118
name: string;
119119
options?: APIApplicationCommandInteractionDataOption[];
120120
resolved?: {
121-
users?: Record<string, APIUser>;
122-
roles?: Record<string, APIRole>;
123-
members?: Record<string, APIInteractionDataResolvedGuildMember>;
124-
channels?: Record<string, APIInteractionDataResolvedChannel>;
121+
users?: Record<Snowflake, APIUser>;
122+
roles?: Record<Snowflake, APIRole>;
123+
members?: Record<Snowflake, APIInteractionDataResolvedGuildMember>;
124+
channels?: Record<Snowflake, APIInteractionDataResolvedChannel>;
125125
};
126126
}
127127

0 commit comments

Comments
 (0)