diff options
| author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2022-06-01 17:22:51 -0400 |
|---|---|---|
| committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2022-06-01 17:22:51 -0400 |
| commit | d7099571b90c4211f90089bb41e90b0a08b86112 (patch) | |
| tree | aa9cda0908fa37d96c036a6384d35f4b627bd5be /src/commands/utilities | |
| parent | cb6368c78c2c3cdc0ff63be600750e81f815ce8c (diff) | |
| download | tanzanite-d7099571b90c4211f90089bb41e90b0a08b86112.tar.gz tanzanite-d7099571b90c4211f90089bb41e90b0a08b86112.tar.bz2 tanzanite-d7099571b90c4211f90089bb41e90b0a08b86112.zip | |
fix: remove user allowed mentions
Diffstat (limited to 'src/commands/utilities')
| -rw-r--r-- | src/commands/utilities/highlight-clear.ts | 7 | ||||
| -rw-r--r-- | src/commands/utilities/uuid.ts | 12 |
2 files changed, 11 insertions, 8 deletions
diff --git a/src/commands/utilities/highlight-clear.ts b/src/commands/utilities/highlight-clear.ts index 8c261c2..274c6fb 100644 --- a/src/commands/utilities/highlight-clear.ts +++ b/src/commands/utilities/highlight-clear.ts @@ -1,4 +1,4 @@ -import { AllowedMentions, BushCommand, ConfirmationPrompt, type BushMessage, type BushSlashMessage } from '#lib'; +import { BushCommand, ConfirmationPrompt, type BushMessage, type BushSlashMessage } from '#lib'; import assert from 'assert'; import { highlightSubcommands } from './highlight-!.js'; @@ -26,9 +26,6 @@ export default class HighlightClearCommand extends BushCommand { const success = await client.highlightManager.removeAllHighlights(message.guild.id, message.author.id); if (!success) return await message.util.reply(`${util.emojis.error} There was an error clearing your highlight list.`); - return await message.util.reply({ - content: `${util.emojis.success} Successfully cleared your highlight list.`, - allowedMentions: AllowedMentions.none() - }); + return await message.util.reply(`${util.emojis.success} Successfully cleared your highlight list.`); } } diff --git a/src/commands/utilities/uuid.ts b/src/commands/utilities/uuid.ts index 3699478..448baf3 100644 --- a/src/commands/utilities/uuid.ts +++ b/src/commands/utilities/uuid.ts @@ -1,4 +1,4 @@ -import { BushCommand, type BushMessage, type BushSlashMessage } from '#lib'; +import { AllowedMentions, BushCommand, type BushMessage, type BushSlashMessage } from '#lib'; import { ApplicationCommandOptionType } from 'discord.js'; export default class UuidCommand extends BushCommand { @@ -45,9 +45,15 @@ export default class UuidCommand extends BushCommand { const readableIGN = ign.match[0]; try { const uuid = await util.mcUUID(readableIGN, dashed); - return await message.util.reply(`The uuid for ${util.format.input(readableIGN)} is ${util.format.input(uuid)}`); + return await message.util.reply({ + content: `The uuid for ${util.format.input(readableIGN)} is ${util.format.input(uuid)}`, + allowedMentions: AllowedMentions.none() + }); } catch (e) { - return await message.util.reply(`${util.emojis.error} Could not find an uuid for ${util.format.input(readableIGN)}.`); + return await message.util.reply({ + content: `${util.emojis.error} Could not find an uuid for ${util.format.input(readableIGN)}.`, + allowedMentions: AllowedMentions.none() + }); } } } |
