Make [p]selfrole without subcommand "toggle" the selfrole (#4826)

* Merge selfrole and remove into one command

replacement pr

* docs

add to the docs

* Update admin.py

remove register name

* Update admin.rst

* Fixes

* Fix the duplicated command decorators

* Minimize the diff

Co-authored-by: jack1142 <6032823+jack1142@users.noreply.github.com>
This commit is contained in:
Wyn
2021-02-16 09:16:16 -05:00
committed by GitHub
parent 1be7435fb5
commit bee022d1bb
2 changed files with 21 additions and 10 deletions

View File

@@ -46,13 +46,16 @@ selfrole
.. code-block:: none
[p]selfrole
[p]selfrole <selfrole>
**Description**
Add or remove roles to yourself. Those roles must have been configured as user
settable by admins using the :ref:`selfroleset command
<admin-command-selfroleset>`.
Add or remove a role from yourself. It must have been configured as user settable
by admins using the :ref:`selfroleset command <admin-command-selfroleset>`.
**Arguments**
* ``<selfrole>``: The role you want to attribute or remove from yourself. |role-input|
.. _admin-command-selfrole-add: