From 25c698273a37d753df01888100be21bd2561ba09 Mon Sep 17 00:00:00 2001 From: Nick Jungmann Date: Mon, 21 Nov 2022 00:30:49 +0100 Subject: [PATCH] Fixed sending message with translation pipe #20 --- kdb-bot/src/modules/base/command/mass_move_command.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/kdb-bot/src/modules/base/command/mass_move_command.py b/kdb-bot/src/modules/base/command/mass_move_command.py index ccf9f9d7..4d72ecb9 100644 --- a/kdb-bot/src/modules/base/command/mass_move_command.py +++ b/kdb-bot/src/modules/base/command/mass_move_command.py @@ -10,7 +10,6 @@ from discord.ext.commands import Context from bot_core.abc.message_service_abc import MessageServiceABC from bot_core.helper.command_checks import CommandChecks from bot_core.logging.command_logger import CommandLogger -from modules.base.thread.mass_move_thread import MassMoveThread class MassMoveCommand(DiscordCommandABC): @@ -45,6 +44,6 @@ class MassMoveCommand(DiscordCommandABC): moves = [member.move_to(channel_to) for member in channel_from.members] await asyncio.gather(*moves) - await self._message_service.send_ctx_msg(ctx, self._t.transform('modules.base.mass_move.moved', channel_from.name, channel_to.name)) + await self._message_service.send_ctx_msg(ctx, self._t.transform('modules.base.mass_move.moved').format(channel_from.mention, channel_to.mention)) self._logger.trace(__name__, f'Finished mass-move command')