From b98828fce374e233bd56b4f3f14dc11831b435ad Mon Sep 17 00:00:00 2001 From: Sven Heidemann Date: Thu, 30 Nov 2023 17:54:31 +0100 Subject: [PATCH] Fixed mass move #444 --- bot/src/modules/base/command/mass_move_command.py | 2 +- bot/src/modules/base/helper/voice_channel_transformer.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bot/src/modules/base/command/mass_move_command.py b/bot/src/modules/base/command/mass_move_command.py index 4dd835d2..938b7259 100644 --- a/bot/src/modules/base/command/mass_move_command.py +++ b/bot/src/modules/base/command/mass_move_command.py @@ -38,7 +38,7 @@ class MassMoveCommand(DiscordCommandABC): self, ctx: Context, channel_to: discord.VoiceChannel, - channel_from: Transform[str, VoiceChannelTransformer] = None, + channel_from: Transform[discord.VoiceChannel, VoiceChannelTransformer] = None, ): self._logger.debug(__name__, f"Received command mass-move {ctx}") diff --git a/bot/src/modules/base/helper/voice_channel_transformer.py b/bot/src/modules/base/helper/voice_channel_transformer.py index a6056e58..c0b310dd 100644 --- a/bot/src/modules/base/helper/voice_channel_transformer.py +++ b/bot/src/modules/base/helper/voice_channel_transformer.py @@ -25,7 +25,7 @@ class VoiceChannelTransformer(Transformer): return [ app_commands.Choice( name=f"{vc.name}" if vc.category is None else f"{vc.name}: {vc.category.name}", - value=vc.name, + value=str(vc.id), ) for vc in get_client_utils().get_auto_complete_list(voice_channels, current, lambda x: x.name) ]