Add more 429 debugging
This commit is contained in:
parent
ddfdcdccd3
commit
f31ef176b4
1 changed files with 5 additions and 0 deletions
|
@ -49,6 +49,11 @@ export async function onMessageCreate(pluginData: GuildPluginData<SlowmodePlugin
|
||||||
const userHasSlowmode = await pluginData.state.slowmodes.userHasSlowmode(channel.id, msg.user_id);
|
const userHasSlowmode = await pluginData.state.slowmodes.userHasSlowmode(channel.id, msg.user_id);
|
||||||
if (userHasSlowmode) {
|
if (userHasSlowmode) {
|
||||||
try {
|
try {
|
||||||
|
// FIXME: Debug
|
||||||
|
// tslint:disable-next-line:no-console
|
||||||
|
console.log(
|
||||||
|
`[DEBUG] [SLOWMODE] Deleting message ${msg.id} from channel ${channel.id} in guild ${pluginData.guild.id}`,
|
||||||
|
);
|
||||||
await channel.messages.delete(msg.id);
|
await channel.messages.delete(msg.id);
|
||||||
thisMsgLock.interrupt();
|
thisMsgLock.interrupt();
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue