Skip to content
This repository was archived by the owner on Aug 28, 2025. It is now read-only.

Commit 73806c6

Browse files
authored
Update index.d.ts
1 parent 4b63ab8 commit 73806c6

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

index.d.ts

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1139,6 +1139,13 @@ declare class MenuInteraction{
11391139
* @param form The form the member who selected a value from the menu should see
11401140
*/
11411141
sendForm(form: FormBuilder) : Promise<void>;
1142+
1143+
/**
1144+
* Executes a command based on the current interaction
1145+
* @param commandName The name of the command you'd like to execute
1146+
* @param args The arguments you'd like to pass to the command
1147+
*/
1148+
executeCommand(commandName: string, args?: [any]) : void;
11421149
}
11431150

11441151
declare class ButtonInteraction{
@@ -1208,6 +1215,13 @@ declare class ButtonInteraction{
12081215
* @param form The form the member who pressed the button should see
12091216
*/
12101217
sendForm(form: FormBuilder) : Promise<void>;
1218+
1219+
/**
1220+
* Executes a command based on the current interaction
1221+
* @param commandName The name of the command you'd like to execute
1222+
* @param args The arguments you'd like to pass to the command
1223+
*/
1224+
executeCommand(commandName: string, args?: [any]) : void;
12111225
}
12121226

12131227
declare class FormInteraction{
@@ -1277,6 +1291,13 @@ declare class FormInteraction{
12771291
* @param content The content of the new message
12781292
*/
12791293
update(...content: [MessageContentType]) : Promise<Message>;
1294+
1295+
/**
1296+
* Executes a command based on the current interaction
1297+
* @param commandName The name of the command you'd like to execute
1298+
* @param args The arguments you'd like to pass to the command
1299+
*/
1300+
executeCommand(commandName: string, args?: [any]) : void;
12801301
}
12811302

12821303
declare class Level{
@@ -1327,6 +1348,7 @@ declare class VoiceState{
13271348
mute: boolean;
13281349
deaf: boolean;
13291350
channelId: string | null;
1351+
guild: Guild;
13301352
guildId: string | undefined;
13311353
channel: ChannelType;
13321354

0 commit comments

Comments
 (0)