1
0
mirror of https://github.com/toast-ts/Daggerbot-TS.git synced 2024-11-18 00:31:00 -05:00

Compare commits

...

3 Commits

Author SHA1 Message Date
toast-ts
8e367e4c80 Merge branch 'master' into sequelize-v7 2024-02-26 13:49:25 +11:00
toast-ts
d1b9d7a618 Fix flood in console 2024-02-25 23:18:33 +11:00
toast-ts
3fc6824e57 Update @types/pg 2024-02-25 20:43:32 +11:00

View File

@ -105,7 +105,7 @@ client.on('raw', async (packet:RawGatewayPacket<RawMessageUpdate>)=>{
const channel = client.channels.cache.get(packet.d.channel_id) as Discord.TextBasedChannel;
// Switched to console.log to prevent useless embed creation that has same content as the original message.
if (!rawSwitches.MESSAGE_UPDATE) return Logger.console('log', 'RawEvent:Edit', `Message was edited in #${(channel as Discord.TextChannel).name}`);
if (!rawSwitches.MESSAGE_UPDATE && !packet.d.author.bot) return Logger.console('log', 'RawEvent:Edit', `Message was edited in #${(channel as Discord.TextChannel).name}`);
});
client.on('raw', async (packet:RawGatewayPacket<RawMessageDelete>)=>{