mirror of
https://github.com/toast-ts/Daggerbot-TS.git
synced 2024-11-18 08:50:59 -05:00
Compare commits
No commits in common. "8e367e4c80b960e77b44a2adc33e50465e430daa" and "14077381acc8873e9f55f173e6b1d1b0234f7fcd" have entirely different histories.
8e367e4c80
...
14077381ac
@ -105,7 +105,7 @@ client.on('raw', async (packet:RawGatewayPacket<RawMessageUpdate>)=>{
|
|||||||
const channel = client.channels.cache.get(packet.d.channel_id) as Discord.TextBasedChannel;
|
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.
|
// Switched to console.log to prevent useless embed creation that has same content as the original message.
|
||||||
if (!rawSwitches.MESSAGE_UPDATE && !packet.d.author.bot) return Logger.console('log', 'RawEvent:Edit', `Message was edited in #${(channel as Discord.TextChannel).name}`);
|
if (!rawSwitches.MESSAGE_UPDATE) return Logger.console('log', 'RawEvent:Edit', `Message was edited in #${(channel as Discord.TextChannel).name}`);
|
||||||
});
|
});
|
||||||
|
|
||||||
client.on('raw', async (packet:RawGatewayPacket<RawMessageDelete>)=>{
|
client.on('raw', async (packet:RawGatewayPacket<RawMessageDelete>)=>{
|
||||||
|
Loading…
Reference in New Issue
Block a user