Added mass-move command #136

Merged
edraft merged 4 commits from #20 into 0.3 2022-11-21 19:00:35 +01:00
Showing only changes of commit 25c698273a - Show all commits

View File

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