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 12369cdbe3 - Show all commits

View File

@ -1,17 +0,0 @@
import asyncio
import threading
import discord
from cpl_discord.service import DiscordBotServiceABC
class MassMoveThread(threading.Thread):
def __init__(self, bot: DiscordBotServiceABC, member: discord.Member, channel_to: discord.VoiceChannel):
threading.Thread.__init__(self, daemon=True)
self._bot = bot
self._member = member
self._channel_to = channel_to
def run(self):
self._bot.loop.create_task(self._member.move_to(self._channel_to))