diff options
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; |