mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Discord.js v14
This commit is contained in:
@@ -7,7 +7,7 @@ module.exports = class MessageArgumentType extends ArgumentType {
|
||||
|
||||
async validate(val, msg) {
|
||||
if (!/^[0-9]+$/.test(val)) return false;
|
||||
return Boolean(await msg.channel.messages.fetch(val).catch(() => null));
|
||||
return Boolean(await msg.channel.messages.fetch({ message: val }).catch(() => null));
|
||||
}
|
||||
|
||||
parse(val, msg) {
|
||||
|
||||
Reference in New Issue
Block a user