Added messaging to mass-move #20
This commit is contained in:
@@ -35,8 +35,8 @@ class MassMoveCommand(DiscordCommandABC):
|
||||
channel_from: discord.VoiceChannel = None):
|
||||
self._logger.debug(__name__, f'Received command mass-move {ctx}')
|
||||
|
||||
if channel_from is None and ctx.author.voice.channel is None:
|
||||
##Hier den User benachrichtigen, dass er nicht in einem Channel sitzt.
|
||||
if channel_from is None and ctx.author.voice is None:
|
||||
await self._message_service.send_ctx_msg(ctx, self._t.transform('modules.base.mass_move.channel_from_error'))
|
||||
return
|
||||
|
||||
if channel_from is None:
|
||||
@@ -45,4 +45,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))
|
||||
|
||||
self._logger.trace(__name__, f'Finished mass-move command')
|
||||
|
Reference in New Issue
Block a user