Skip to content

Commit

Permalink
fix get_whitelist_groups key error
Browse files Browse the repository at this point in the history
  • Loading branch information
a3510377 committed Feb 19, 2024
1 parent 9d6a492 commit c6ba111
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extra/discord/admin/mc.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def add_whitelist(mc_id: str, group_name: str = "trial") -> bool:

async def get_whitelist_groups(ctx: discord.AutocompleteContext):
yaml_data = read_whitelist_file()
return yaml_data["groups"].get(ctx.options["group"], [])
return yaml_data["groups"].keys()


async def check_role(base_guild: Guild, ctx: ApplicationContext) -> bool:
Expand Down

0 comments on commit c6ba111

Please sign in to comment.