Fixed #153
This commit is contained in:
parent
986d7c4562
commit
1337ef35dd
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user