mirror of
https://github.com/ReVanced/revanced-bots.git
synced 2026-01-31 15:01:01 +00:00
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:
@@ -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]}`));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user