Fixed mass move #444

This commit is contained in:
Sven Heidemann 2023-11-30 17:54:31 +01:00
parent 5f8ae787f0
commit b98828fce3
2 changed files with 2 additions and 2 deletions

View File

@ -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}")

View File

@ -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)
]