From a0c7752ed28451a5b2927c56a608b54f379fd7d7 Mon Sep 17 00:00:00 2001 From: Elysia <71698422+aiko-chan-ai@users.noreply.github.com> Date: Sat, 6 Jan 2024 09:07:09 +0700 Subject: [PATCH] Update Formatters.js --- src/util/Formatters.js | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/src/util/Formatters.js b/src/util/Formatters.js index 1b5f518..439a517 100644 --- a/src/util/Formatters.js +++ b/src/util/Formatters.js @@ -18,7 +18,6 @@ const { TimestampStyles, underscore, userMention, - chatInputApplicationCommandMention, } = require('@discordjs/builders'); /** @@ -66,7 +65,22 @@ Formatters.channelMention = channelMention; * @returns {string} * @static */ -Formatters.chatInputApplicationCommandMention = chatInputApplicationCommandMention; +Formatters.chatInputApplicationCommandMention = function chatInputApplicationCommandMention( + commandName, + subcommandGroupOrSubOrId, + subcommandNameOrId, + commandId, +) { + if (typeof commandId !== 'undefined') { + return ``; + } + + if (typeof subcommandNameOrId !== 'undefined') { + return ``; + } + + return ``; +}; /** * Wraps the content inside a code block with an optional language.