mirror of
https://github.com/tiramisulabs/seyfert.git
synced 2025-07-03 05:26:07 +00:00
fullCommandName
This commit is contained in:
parent
6d4e0589b1
commit
e2368bb1fe
@ -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,
|
||||
|
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user