fix(bot-discord): fix again

wont be the last time thanks to exile prefixed cmd and unexile not working properly for some fucking reason
This commit is contained in:
GramingFoxTeam
2023-08-13 20:47:10 +03:00
parent 8b9392d97a
commit 8991d979b9
6 changed files with 14 additions and 27 deletions

View File

@@ -13,9 +13,9 @@ export default {
if (args && args[0]) {
if (isNaN(args[0])) return msg.reply('The argument you entered is not a number!');
const msgsByAuthor = (await msg.channels.fetch({ limit: 50 })).filter(
const msgsByAuthor = (await msg.channel.messages.fetch({ limit: 50 })).filter(
m => m.author.id === referencedMsg.author.id
);
).map(m => m.content);
message = msgsByAuthor.slice(Number(`-${args[0]}`));
}