Commands
Each action creates a numbered case, stored per server.
/ban user reason delete_days— bans and optionally deletes up to seven days of messages./unban user_id reason— removes a ban by user ID./kick user reason— kicks a member who is still in the server./timeout user minutes reason— 1 to 40,320 minutes (28 days)./untimeout user— releases an active timeout./warn user reasonand/warnings user— warnings stay active until the record is closed./clearwarnings user reason— closes every active warning for a member and records that as a case./note user text— a private moderator note. It gets a case number but the member is never told./case view number,/case list user actionand/case reason number reason— look up and correct history./role add user roleand/role remove user role— the role must sit below both your highest role and the bot role./nick user nickname— leave the nickname empty to reset it. Needs Manage Nicknames./purge amount user reason— bulk delete up to 100 messages from the last 14 days./slowmode seconds channel,/lock channel,/unlock channel.
Hierarchy rules
Lyx refuses to act on the server owner, on itself, or on a member whose highest role is equal to or above the bot role. It also refuses when a moderator tries to act on someone ranked at or above them, unless the moderator is the owner.
This is deliberate. A bot that ignores role hierarchy is a liability.
Where cases go
Set /moderation log channel from the dashboard, or let cases fall back to the logging channel. Every case includes the action, target, moderator, reason, duration and case number.
AutoMod actions create cases too, with the bot as the moderator and the rule as the reason.
Direct messages
When DM on action is enabled, Lyx tries to tell the member what happened. Members with DMs closed cannot be reached; the action still applies and the failure is ignored.