Fixed sending message with translation pipe #20

This commit is contained in:
Nick Jungmann 2022-11-21 00:30:49 +01:00
parent 2868b1afe2
commit 25c698273a

View File

@ -10,7 +10,6 @@ from discord.ext.commands import Context
from bot_core.abc.message_service_abc import MessageServiceABC from bot_core.abc.message_service_abc import MessageServiceABC
from bot_core.helper.command_checks import CommandChecks from bot_core.helper.command_checks import CommandChecks
from bot_core.logging.command_logger import CommandLogger from bot_core.logging.command_logger import CommandLogger
from modules.base.thread.mass_move_thread import MassMoveThread
class MassMoveCommand(DiscordCommandABC): class MassMoveCommand(DiscordCommandABC):
@ -45,6 +44,6 @@ class MassMoveCommand(DiscordCommandABC):
moves = [member.move_to(channel_to) for member in channel_from.members] moves = [member.move_to(channel_to) for member in channel_from.members]
await asyncio.gather(*moves) 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') self._logger.trace(__name__, f'Finished mass-move command')