diff options
Diffstat (limited to 'src/commands/utilities/decode.ts')
-rw-r--r-- | src/commands/utilities/decode.ts | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/commands/utilities/decode.ts b/src/commands/utilities/decode.ts index cc742c8..6aabeac 100644 --- a/src/commands/utilities/decode.ts +++ b/src/commands/utilities/decode.ts @@ -5,7 +5,6 @@ import { clientSendAndPermCheck, colors, formatError, - inspectCleanRedactCodeblock, type CommandMessage, type SlashMessage } from '#lib'; @@ -64,15 +63,17 @@ export default class DecodeCommand extends BushCommand { const encodeOrDecode = capitalize(message?.util?.parsed?.alias ?? 'decoded'); const decodedEmbed = new EmbedBuilder() .setTitle(`${encodeOrDecode} Information`) - .addFields([{ name: '📥 Input', value: await inspectCleanRedactCodeblock(data) }]); + .addFields([{ name: '📥 Input', value: await this.client.utils.inspectCleanRedactCodeblock(data) }]); try { const decoded = Buffer.from(data, from).toString(to); - decodedEmbed.setColor(colors.success).addFields([{ name: '📤 Output', value: await inspectCleanRedactCodeblock(decoded) }]); + decodedEmbed + .setColor(colors.success) + .addFields([{ name: '📤 Output', value: await this.client.utils.inspectCleanRedactCodeblock(decoded) }]); } catch (error) { decodedEmbed.setColor(colors.error).addFields([ { name: `📤 Error ${encodeOrDecode.slice(1)}ing`, - value: await inspectCleanRedactCodeblock(formatError(error)) + value: await this.client.utils.inspectCleanRedactCodeblock(formatError(error)) } ]); } |