Skip to content
Skip to Content
Commands

Member Actions

Warn, mute, kick, ban, quarantine, and act on many members at once.

/warn

Give a member a warning.

Who can use it: Timeout Members, or staff allowed to Warn

Creates a warning case, which expires after the duration if one applies. If member DMs are on, Guard DMs them, and reaching a warning count set up under the server's automatic punishments triggers that punishment.

OptionTypeRequired
memberUserYesWho to warn.
reasonTextReason for the warning.
durationTextHow long it lasts, like 7d. Uses the server default if empty. Default: Server's default warning duration, or permanent if none is set.
visibleChoiceShow the reply to everyone. Defaults to yes. One of: Yes, No. Default: yes.

Good to know

  • The member has to be in the server, and bots can't be warned.

/unwarn

Remove warnings from a member.

Who can use it: Timeout Members, or staff allowed to Warn

Resolves one warning by case number, or all of the member's active warnings if no case is given. If member DMs are on, Guard DMs them.

OptionTypeRequired
memberUserYesWho to unwarn.
caseNumberThe warning's case number. Defaults to all active ones. At least 1. Default: All active warnings.
reasonTextReason for removing the warning.
visibleChoiceShow the reply to everyone. Defaults to yes. One of: Yes, No. Default: yes.

Good to know

  • Works on users who left the server.

/warnings

Show a member's active warnings.

Who can use it: Timeout Members, or staff allowed to Look Up

Lists the member's active warnings, newest first, 3 per page.

OptionTypeRequired
memberUserYesWhose warnings to show.
visibleChoiceShow the reply to everyone. Defaults to yes. One of: Yes, No. Default: yes.

/mute

Time out a member so they can't talk for a while.

Who can use it: Timeout Members, or staff allowed to Mute

Puts the member in a Discord timeout for the duration and creates a mute case. If member DMs are on, Guard DMs them.

OptionTypeRequired
memberUserYesWho to mute.
durationTextYesHow long, like 10m or 1d. Up to 28 days.
reasonTextReason for the mute.
visibleChoiceShow the reply to everyone. Defaults to yes. One of: Yes, No. Default: yes.

Good to know

  • Mutes can't be permanent. Fails if the member is already muted, isn't in the server, or is a bot.

/unmute

Remove a member's timeout so they can talk again.

Who can use it: Timeout Members, or staff allowed to Mute

Removes the member's Discord timeout and resolves their active mute cases. If member DMs are on, Guard DMs them.

OptionTypeRequired
memberUserYesWho to unmute.
reasonTextReason for the unmute.
visibleChoiceShow the reply to everyone. Defaults to yes. One of: Yes, No. Default: yes.

Good to know

  • Fails if they aren't muted or aren't in the server.

/kick

Kick a member from the server.

Who can use it: Kick Members, or staff allowed to Kick

Kicks the member and creates a kick case. If member DMs are on, Guard DMs them before the kick.

OptionTypeRequired
memberUserYesWho to kick.
reasonTextReason for the kick.
visibleChoiceShow the reply to everyone. Defaults to yes. One of: Yes, No. Default: yes.

Good to know

  • The member has to be in the server.
  • Counts toward the server's hourly ban/kick limit.

/ban

Ban a member from the server.

Who can use it: Ban Members, or staff allowed to Ban

Bans the user and creates a ban case. The user doesn't have to be in the server. Without a duration it uses the server's default ban duration, or bans permanently if none is set, and timed bans are lifted automatically when they expire.

OptionTypeRequired
memberUserYesWho to ban.
reasonTextReason for the ban.
durationTextHow long, like 6h or 7d. Uses the server default if empty. Default: Server's default ban duration, or permanent if none is set.
deletedaysChoiceHow much of their recent messages to delete. One of: Don't delete any, Last 24 hours, Last 48 hours, Last 3 days, Last 4 days, Last 5 days, Last 6 days, Last 7 days. Default: Server's default for bans, or none.
visibleChoiceShow the reply to everyone. Defaults to yes. One of: Yes, No. Default: yes.

Good to know

  • Counts toward the server's hourly ban/kick limit.
  • When member DMs or ban appeals are on, the user is DMed before the ban. The DM has an Appeal button if appeals or an appeal link are set up.
  • Fails if they're already banned, if they're you, Guard or the owner, or if their highest role is as high as yours or above Guard's.

/softban

Ban and unban a member right away to clear their messages.

Who can use it: Ban Members, or staff allowed to Ban

Bans the user to delete their recent messages, then unbans them right away so they can rejoin. It records a soft ban case that is resolved immediately.

OptionTypeRequired
memberUserYesWho to soft ban.
reasonTextReason for the soft ban.
deletedaysChoiceHow much of their messages to delete. Defaults to 24 hours. One of: Don't delete any, Last 24 hours, Last 48 hours, Last 3 days, Last 4 days, Last 5 days, Last 6 days, Last 7 days. Default: Server's default for soft bans, or the last 24 hours.
visibleChoiceShow the reply to everyone. Defaults to yes. One of: Yes, No. Default: yes.

Good to know

  • Counts toward the server's hourly ban/kick limit.
  • If member DMs are on, they're DMed before the ban, with an appeal link button if one is set.

/unban

Unban a user.

Who can use it: Ban Members, or staff allowed to Ban

Unbans the user and resolves their active ban case. If member DMs are on, Guard tries to DM them.

OptionTypeRequired
memberUserYesWho to unban. Their ID works too.
reasonTextReason for the unban.
visibleChoiceShow the reply to everyone. Defaults to yes. One of: Yes, No. Default: yes.

Good to know

  • Fails if they aren't banned.

/quarantine

Take a member's roles and lock them in the quarantine channel.

Who can use it: Manage Roles, or staff allowed to Quarantine

Saves and removes the member's roles (app-managed roles stay), gives them the quarantine role, and creates a quarantine case. A timed quarantine ends on its own and gives the roles back. If member DMs are on, Guard DMs them.

OptionTypeRequired
memberUserYesWho to quarantine.
durationTextHow long, like 1h or 7d. Leave it empty to keep them there until unquarantined. Default: Server's default quarantine duration, or until unquarantined if none is set.
reasonTextReason for the quarantine.
visibleChoiceShow the reply to everyone. Defaults to yes. One of: Yes, No. Default: yes.

Good to know

  • Needs a quarantine role set in /settings > Moderation > Quarantine. The role must be below Guard's highest role and have no risky permissions like Administrator.
  • If they leave and rejoin while quarantined, the quarantine role is given back.
  • Counts toward the server's hourly ban/kick limit. Bots can't be quarantined.

/unquarantine

Let a member out of quarantine and give their roles back.

Who can use it: Manage Roles, or staff allowed to Quarantine

Removes the quarantine role, gives back the roles saved when they were quarantined, and resolves the quarantine case. If they already left, they won't be quarantined again when they come back.

OptionTypeRequired
memberUserYesWho to let out. Their ID works too if they left.
reasonTextReason for letting them out.
visibleChoiceShow the reply to everyone. Defaults to yes. One of: Yes, No. Default: yes.

Good to know

  • Roles above you, roles with risky permissions you don't have, honeypot trap roles, and roles Guard can't manage aren't given back.

/temprole

Give a member a role for a while.

Who can use it: Manage Roles, or staff allowed to Give Roles

Gives the member the role and takes it back automatically when the time is up. If they leave and rejoin while it's still running, the role is given back.

OptionTypeRequired
memberUserYesWho gets the role.
roleRoleYesRole to give.
durationTextYesHow long, like 2h or 1d.
reasonTextWhy. Default: Temporary role by @<you>.

Good to know

  • Doesn't create a case.
  • The role must be below Guard's and your highest roles, can't belong to an app, can't be a honeypot trap role, and can't have risky permissions you don't have. The member's highest role must be below yours.
  • The reason is used as written. Saved reason aliases aren't expanded.

/channelmute

Stop a member from talking in one channel for a while.

Who can use it: Timeout Members, or staff allowed to Mute

Gives the member a permission overwrite in that channel that denies sending messages, posting in threads, creating threads, reacting, speaking, voice messages and polls. When the time is up, Guard puts back the overwrite they had before.

OptionTypeRequired
memberUserYesWho to mute.
channelChannelYesThe channel.
durationTextYesHow long, like 30m or 1h.
reasonTextWhy. Default: Channel mute by @<you>.

Good to know

  • Doesn't create a case.
  • Muting the same member in the same channel again replaces the earlier mute.
  • If they leave and rejoin, the mute is applied again while it's still running.
  • Admins can't be channel muted, and the member's highest role must be below yours.
  • The reason is used as written. Saved reason aliases aren't expanded.

/massban

Ban every member matching some filters, for cleaning up raids.

Who can use it: Ban Members, or staff allowed to Ban · Cooldown: 10s

Finds every member matching the filters and shows only you a preview with a Ban and a Cancel button. Confirming bans them in bulk and posts a Mass Ban entry to the audit logs.

OptionTypeRequired
joined_afterTextOnly members who joined within this long, like 30m or 2h.
joined_beforeTextOnly members who joined more than this long ago, like 10m.
nameTextOnly names matching this, like raider* or nitro. Not case sensitive.
account_younger_thanTextOnly accounts newer than this, like 1d or 7d.
no_avatarChoiceOnly members with the default avatar. Defaults to no. One of: Yes, No. Default: no.
no_rolesChoiceSkip members who have any roles. Defaults to yes. One of: Yes, No. Default: yes.
reasonTextReason for the ban.
deletedaysChoiceHow much of their recent messages to delete. Defaults to none. One of: None, Last hour, Last day. Default: 0.

Good to know

  • Needs at least one of joined_after, joined_before, name, account_younger_than or no_avatar.
  • The name filter matches username, display name or nickname, and * is a wildcard.
  • Skips staff, bots, the owner, you, Guard, and anyone at or above your highest role or Guard's.
  • Bans at most 1,000 members per run, newest joiners first. Servers with more than 25,000 members can't use it, and only one mass ban or kick can run in a server at a time. The preview expires after 10 minutes.
  • Respects the hourly ban/kick limit and Anti-Nuke's limits. No individual cases are created and members aren't DMed.

/masskick

Kick every member matching some filters, for cleaning up raids.

Who can use it: Kick Members, or staff allowed to Kick · Cooldown: 10s

Finds every member matching the filters and shows only you a preview with a Kick and a Cancel button. Confirming kicks them and posts a Mass Kick entry to the audit logs.

OptionTypeRequired
joined_afterTextOnly members who joined within this long, like 30m or 2h.
joined_beforeTextOnly members who joined more than this long ago, like 10m.
nameTextOnly names matching this, like raider* or nitro. Not case sensitive.
account_younger_thanTextOnly accounts newer than this, like 1d or 7d.
no_avatarChoiceOnly members with the default avatar. Defaults to no. One of: Yes, No. Default: no.
no_rolesChoiceSkip members who have any roles. Defaults to yes. One of: Yes, No. Default: yes.
reasonTextReason for the kick.

Good to know

  • Needs at least one of joined_after, joined_before, name, account_younger_than or no_avatar.
  • The name filter matches username, display name or nickname, and * is a wildcard.
  • Skips staff, bots, the owner, you, Guard, and anyone at or above your highest role or Guard's.
  • Kicks at most 1,000 members per run, newest joiners first. Servers with more than 25,000 members can't use it, and only one mass ban or kick can run in a server at a time. The preview expires after 10 minutes.
  • Respects the hourly ban/kick limit and Anti-Nuke's limits. No individual cases are created and members aren't DMed.

On this page