MoonlightBot Documentation
  • MoonlightBot Documentation
  • Get Started
    • Options
    • Frequently Asked Questions
    • Permission Tutorial
    • Moderation Tutorial
    • Setting up Reaction Roles
  • Support Our Work
    • Volunteer Opportunities
    • Premium Subscriptions
    • Upvote MoonlightBot
    • Support Server
    • MoonlightBot Beta (early access)
    • Special Thanks
  • Policies
    • Acceptable Use Policy
    • Volunteer Code of Conduct
    • Privacy Policy
  • Management Commands
    • config
    • create-muterole
    • reaction-roles
  • Miscellaneous Commands
    • check-duration
    • premium
    • userconfig
    • Other Minor Commands
  • Moderation Commands
    • ban
    • clean
    • infractions
    • kick
    • mute
    • softban
    • tempban
    • tempmute
    • timeout
    • unban
    • unmute
    • warn
  • Role management Commands
    • list-temproles
    • pause-role
    • role
    • selfrole
    • temprole
  • Utility Commands
    • reminder
    • serverinfo
    • snowflake
    • userinfo
  • Advanced
    • Using developer mode
    • List of log names
Powered by GitBook
On this page
  • Required permissions
  • Syntax
  • Options
  • Logs
  1. Role management Commands

selfrole

PreviousroleNexttemprole

Last updated 7 months ago

This command allows you to assign or remove a role from yourself.

The server admins need to make a role self-assignable before you can use it.

Required permissions

MoonlightBot requires the following permissions to successfully execute this command:

  • Manage Roles

By default, a user is required to have the following permissions to use this command:

No specific permissions required

For more information on editing permission requirements for specific users/roles, refer to the

Syntax

/selfrole [role]

Options

  • role: The role to assign/remove from yourself. If no role is specified, the command will list all self-assignable roles

Logs

  • SELFROLE_REMOVE: This log is triggered when a selfrole is removed by the user. It will log the user and the role that was removed.

  • SELFROLE_ADD: This log is triggered when a selfrole is added by the user. It will log the user and the role that was added.

For more information on setting up those logs, refer to the

permissions tutorial
log setup tutorial
Learn how to do this.