You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The quoiFeur game has 1/20 chance to respond with coubeh, it mutes you whenever it happens.
The muting strategy goes with adding a role Muted to the user, which we remove after 15min.
This have many edge-cases such as:
one time, the role was deleted and not re-created (cache miss?)
it makes uses of setTimeout, so when the bot reload we have to clear the role
Moderators are most of the time above the muted role, so it doesn't work for them
We have to keep track of a role, give it some defaults, etc..
Solution
Use native timeout feature by discord (found by @smaiill on discord, thx).
It would solve many of the issues above, while also simplifying the code.
Here is the link to discord.js documentation for that.
Drawbacks
I think there is no such thing as beeing timeout in only one channel.
But considering the low duration of the timeout, and the amount of benefits, I think it's a good tradeoff.
The text was updated successfully, but these errors were encountered:
Uh oh!
There was an error while loading. Please reload this page.
Problem
The quoiFeur game has 1/20 chance to respond with
coubeh
, it mutes you whenever it happens.The muting strategy goes with adding a role
Muted
to the user, which we remove after 15min.This have many edge-cases such as:
Solution
Use native timeout feature by discord (found by @smaiill on discord, thx).

It would solve many of the issues above, while also simplifying the code.
Here is the link to discord.js documentation for that.
Drawbacks
I think there is no such thing as beeing timeout in only one channel.
But considering the low duration of the timeout, and the amount of benefits, I think it's a good tradeoff.
The text was updated successfully, but these errors were encountered: