Find all messages, durr

This commit is contained in:
Christopher Cookman 2024-08-19 00:24:09 -06:00
parent 94c7322944
commit 0521de87ab
Signed by: ChrisChrome
GPG key ID: A023A26E42C33A42

View file

@ -105,7 +105,7 @@ discord.on('ready', async () => {
});
}
// Try to find the latest message from our webhook, if it doesnt exist send a new one
message = await channel.messages.fetch({ limit: 1 }).then(messages => messages.find(m => m.author.id === webhook.id));
message = await channel.messages.fetch().then(messages => messages.find(m => m.author.id === webhook.id));
if (!message) {
message = await webhook.send({
embeds: [{