From 1337ef35dd3c35dd0f328f87167179d1d40e4aa6 Mon Sep 17 00:00:00 2001 From: Sven Heidemann Date: Wed, 4 Jan 2023 17:05:32 +0100 Subject: [PATCH] Fixed #153 --- kdb-bot/src/modules/base/command/user_group.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kdb-bot/src/modules/base/command/user_group.py b/kdb-bot/src/modules/base/command/user_group.py index 7eb76ac7..041a5566 100644 --- a/kdb-bot/src/modules/base/command/user_group.py +++ b/kdb-bot/src/modules/base/command/user_group.py @@ -179,7 +179,7 @@ class UserGroup(DiscordCommandABC): @get.autocomplete('atr') async def get_autocomplete(self, interaction: discord.Interaction, current: str) -> List[app_commands.Choice[str]]: - return [app_commands.Choice(name=key, value=value) for key, value in self._atr_list] + return [app_commands.Choice(name=value, value=key) for key, value in self._atr_list] @user.command() @commands.guild_only() @@ -219,7 +219,7 @@ class UserGroup(DiscordCommandABC): @set.autocomplete('atr') async def set_autocomplete(self, interaction: discord.Interaction, current: str) -> List[app_commands.Choice[str]]: atr_list = [('xp', self._atr_dict['xp'])] - return [app_commands.Choice(name=key, value=value) for key, value in atr_list] + return [app_commands.Choice(name=value, value=key) for key, value in atr_list] @user.command() @commands.guild_only()