samuelsogbesan / leetbot

LeetCode Question Bot for Discord.
Apache License 2.0
1 stars 0 forks source link

Player Migrator Utility #24

Open samuelsogbesan opened 3 years ago

samuelsogbesan commented 3 years ago

Create a utility, migrator, that can move players between channels.

The function definition should be along the lines of migrate(member, channel)

Assume that member is a GuildMember object and channel is a VoiceChannel object.

member should give you access to member.voice.channel.setChannel, to which you can use to move the player around.

Store this function in bot/components, e.g. bot/components/migrator.js