Skip to content

Commit

Permalink
Import role_choices from config; conv. to hikari "CommandChoice"s
Browse files Browse the repository at this point in the history
  • Loading branch information
koyakonsta authored Jan 31, 2024
1 parent 7b60f6c commit bfd7eb5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/extensions/userroles.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import arc
import hikari
from src.config import role_choices

from src.config import ROLE_IDS as role_choices
role_choices = [hikari.CommandChoice(name=a, value=b) for a,b in role_choices] # reformat role_choices into CommandChoice-es; thus ROLE_IDS can just store easy-to-update tuples

plugin = arc.GatewayPlugin("User Roles")

Expand Down

0 comments on commit bfd7eb5

Please sign in to comment.