fullCommandName

This commit is contained in:
MARCROCK22 2024-03-18 19:10:22 -04:00
parent 6d4e0589b1
commit e2368bb1fe
2 changed files with 8 additions and 0 deletions

View File

@ -57,6 +57,10 @@ export class CommandContext<T extends OptionsRecord = {}, M extends keyof Regist
return this.client.langs.get(this.interaction?.locale ?? this.client.langs.defaultLang ?? 'en-US');
}
get fullCommandName() {
return this.resolver.fullCommandName;
}
async write<FR extends boolean = false>(
body: InteractionCreateBodyRequest,
fetchReply?: FR,

View File

@ -63,6 +63,10 @@ export class MenuCommandContext<
return this.client.langs.get(this.interaction.locale);
}
get fullCommandName() {
return this.command.name;
}
write<FR extends boolean = false>(
body: InteractionCreateBodyRequest,
fetchReply?: FR,