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
{{ message }}
This repository has been archived by the owner on Jul 3, 2021. It is now read-only.
Mute an user.
The bot needs to have manager permission or higher.
Parameters
userID number
The user's ID.
reason int (optional)
Reason for muting.
1: Violating community rules (default)
2: Verbal abuse
3: Spamming or trolling
4: Offensive language
5: Negative attitude
duration string (optional)
Duration of mute.
sorPlugAPI.MUTE.SHORT: 15 minutes
morPlugAPI.MUTE.MEDIUM : 30 minutes
lorPlugAPI.MUTE.LONG : 45 minutes (default)
callback function (optional)
Callback function to be called with data from server.
Returns
true if request queued; otherwise false
Example
// Mute user 'xxxxxx' for 45 minutes for violating community rulesbot.moderateMuteUser('xxxxxx');// Mute user 'xxxxxx' for 15 minutes for spammingbot.moderateMuteUser('xxxxxx',3,PlugAPI.MUTE.SHORT);