diff options
author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2022-05-24 20:59:37 -0400 |
---|---|---|
committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2022-05-24 20:59:37 -0400 |
commit | a8d2c867ca35ea23d63123136e88730065ec9568 (patch) | |
tree | 9ec59b779da0ffe0f2ea7c6e654aedc81f8b2c3a /src/commands | |
parent | 9f5d9da2a37ecfec412b149ec7dc385ab7b6a98c (diff) | |
download | tanzanite-a8d2c867ca35ea23d63123136e88730065ec9568.tar.gz tanzanite-a8d2c867ca35ea23d63123136e88730065ec9568.tar.bz2 tanzanite-a8d2c867ca35ea23d63123136e88730065ec9568.zip |
fix: viewraw context command and perfomance
Diffstat (limited to 'src/commands')
-rw-r--r-- | src/commands/moderation/removeReactionEmoji.ts | 3 | ||||
-rw-r--r-- | src/commands/utilities/viewRaw.ts | 6 |
2 files changed, 5 insertions, 4 deletions
diff --git a/src/commands/moderation/removeReactionEmoji.ts b/src/commands/moderation/removeReactionEmoji.ts index b059bff..bc24db0 100644 --- a/src/commands/moderation/removeReactionEmoji.ts +++ b/src/commands/moderation/removeReactionEmoji.ts @@ -14,7 +14,8 @@ export default class RemoveReactionEmojiCommand extends BushCommand { { id: 'message', description: 'The message to remove all the reactions of a certain emoji from.', - type: 'guildMessage', + type: util.arg.union('message', 'messageLink'), + readableType: 'message|messageLink', prompt: 'What message would you like to remove a reaction from?', retry: '{error} Please pick a valid message.', slashType: ApplicationCommandOptionType.String diff --git a/src/commands/utilities/viewRaw.ts b/src/commands/utilities/viewRaw.ts index 1da26f9..20e7272 100644 --- a/src/commands/utilities/viewRaw.ts +++ b/src/commands/utilities/viewRaw.ts @@ -14,8 +14,8 @@ export default class ViewRawCommand extends BushCommand { { id: 'message', description: 'The message to view the raw content of.', - type: util.arg.union('guildMessage', 'messageLink'), - readableType: 'guildMessage|messageLink', + type: util.arg.union('message', 'messageLink'), + readableType: 'message|messageLink', prompt: 'What message would you like to view?', retry: '{error} Choose a valid message.', slashType: ApplicationCommandOptionType.String @@ -66,7 +66,7 @@ export default class ViewRawCommand extends BushCommand { public override async exec( message: BushMessage | BushSlashMessage, args: { - message: ArgType<'guildMessage'> | ArgType<'messageLink'>; + message: ArgType<'message'> | ArgType<'messageLink'>; channel: OptionalArgType<'textChannel'> | OptionalArgType<'newsChannel'> | OptionalArgType<'threadChannel'>; json: boolean; js: boolean; |