Discord.js v14

This commit is contained in:
Dragon Fire
2024-04-07 19:06:19 -04:00
parent 58c81aa912
commit f59826f7ab
272 changed files with 893 additions and 656 deletions
+1 -1
View File
@@ -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) {