Skip to content

Commit d338409

Browse files
authored
fix: change resolved index types to string (#169)
1 parent ef2a0ae commit d338409

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
@@ -114,10 +114,10 @@ export interface APIApplicationCommandInteractionData {
114114
name: string;
115115
options?: APIApplicationCommandInteractionDataOption[];
116116
resolved?: {
117-
users?: Record<Snowflake, APIUser>;
118-
roles?: Record<Snowflake, APIRole>;
119-
members?: Record<Snowflake, APIInteractionDataResolvedGuildMember>;
120-
channels?: Record<Snowflake, APIInteractionDataResolvedChannel>;
117+
users?: Record<string, APIUser>;
118+
roles?: Record<string, APIRole>;
119+
members?: Record<string, APIInteractionDataResolvedGuildMember>;
120+
channels?: Record<string, APIInteractionDataResolvedChannel>;
121121
};
122122
}
123123

deno/payloads/v9/_interactions/slashCommands.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -114,10 +114,10 @@ export interface APIApplicationCommandInteractionData {
114114
name: string;
115115
options?: APIApplicationCommandInteractionDataOption[];
116116
resolved?: {
117-
users?: Record<Snowflake, APIUser>;
118-
roles?: Record<Snowflake, APIRole>;
119-
members?: Record<Snowflake, APIInteractionDataResolvedGuildMember>;
120-
channels?: Record<Snowflake, APIInteractionDataResolvedChannel>;
117+
users?: Record<string, APIUser>;
118+
roles?: Record<string, APIRole>;
119+
members?: Record<string, APIInteractionDataResolvedGuildMember>;
120+
channels?: Record<string, APIInteractionDataResolvedChannel>;
121121
};
122122
}
123123

payloads/v8/_interactions/slashCommands.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -114,10 +114,10 @@ export interface APIApplicationCommandInteractionData {
114114
name: string;
115115
options?: APIApplicationCommandInteractionDataOption[];
116116
resolved?: {
117-
users?: Record<Snowflake, APIUser>;
118-
roles?: Record<Snowflake, APIRole>;
119-
members?: Record<Snowflake, APIInteractionDataResolvedGuildMember>;
120-
channels?: Record<Snowflake, APIInteractionDataResolvedChannel>;
117+
users?: Record<string, APIUser>;
118+
roles?: Record<string, APIRole>;
119+
members?: Record<string, APIInteractionDataResolvedGuildMember>;
120+
channels?: Record<string, APIInteractionDataResolvedChannel>;
121121
};
122122
}
123123

payloads/v9/_interactions/slashCommands.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -114,10 +114,10 @@ export interface APIApplicationCommandInteractionData {
114114
name: string;
115115
options?: APIApplicationCommandInteractionDataOption[];
116116
resolved?: {
117-
users?: Record<Snowflake, APIUser>;
118-
roles?: Record<Snowflake, APIRole>;
119-
members?: Record<Snowflake, APIInteractionDataResolvedGuildMember>;
120-
channels?: Record<Snowflake, APIInteractionDataResolvedChannel>;
117+
users?: Record<string, APIUser>;
118+
roles?: Record<string, APIRole>;
119+
members?: Record<string, APIInteractionDataResolvedGuildMember>;
120+
channels?: Record<string, APIInteractionDataResolvedChannel>;
121121
};
122122
}
123123

0 commit comments

Comments
 (0)