Skip to content
This repository has been archived by the owner on Jan 15, 2024. It is now read-only.

Commit

Permalink
Append -> Add / Unappend -> Remove
Browse files Browse the repository at this point in the history
  • Loading branch information
TurnrDev committed Jul 20, 2022
1 parent 8ccbb12 commit 92c43f2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/getting_started.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ The following commands exist:
- `/server-config set-nickname-on-join` - A true (yes) / false (no) toggle to set whether the bot should change a users nickname when `/approve` is run against them.

- `/server-config access-roles` - Provides functionality to set which roles are added/removed from users when they're granted access to the server via `/approve` if `assign-roles-on-join` is enabled. This takes three parameters and can be confusing. There are two role lists, a `Grant` list, which is a list of roles the bot will give a user, and a `Revoke` list, which is a list of roles the bot will remove from a user.
- `action` - Options are `Append`, `Unappend` and `View`
- `action` - Options are `Add`, `Remove` and `View`
- `array` - Options are `Grant` and `Revoke`
- `role` - Required if `action` is not `View`

Expand Down
8 changes: 4 additions & 4 deletions trainerdex_discord_bot/cogs/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@ async def guild_config__set_nickname_on_update(
str,
name="action",
choices=[
OptionChoice(name="Append role", value="append"),
OptionChoice(name="Unappend role", value="unappend"),
OptionChoice(name="Add role", value="append"),
OptionChoice(name="Remove role", value="unappend"),
OptionChoice(name="View roles", value="view"),
],
),
Expand Down Expand Up @@ -175,8 +175,8 @@ async def guild_config__access_roles(
str,
name="action",
choices=[
OptionChoice(name="Append role", value="append"),
OptionChoice(name="Unappend role", value="unappend"),
OptionChoice(name="Add role", value="append"),
OptionChoice(name="Remove role", value="unappend"),
OptionChoice(name="View roles", value="view"),
],
),
Expand Down

0 comments on commit 92c43f2

Please sign in to comment.