From f1c8a6dea0ab3b902ddf0107a8046a5977437dc2 Mon Sep 17 00:00:00 2001 From: Snazzah Date: Tue, 17 Sep 2024 09:27:33 -0500 Subject: [PATCH] feat(command): have getMention support subcommands --- src/command.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/command.ts b/src/command.ts index 2f487fac..bda4c9ea 100644 --- a/src/command.ts +++ b/src/command.ts @@ -149,12 +149,13 @@ export class SlashCommand { /** * Get a string that mentions the user. Retuens null if the ID is not collected. + * @param subcommands The subcommands to include in the mention. * @param guild The guild to fetch the ID from. */ - getMention(guild?: string) { + getMention(subcommands?: string, guild?: string) { const id = this.ids.get(guild || 'global'); if (!id) return null; - return ``; + return ``; } /**