Open samuelsogbesan opened 3 years ago
Create a utility, migrator, that can move players between channels.
migrator
The function definition should be along the lines of migrate(member, channel)
migrate(member, channel)
Assume that member is a GuildMember object and channel is a VoiceChannel object.
member
channel
member should give you access to member.voice.channel.setChannel, to which you can use to move the player around.
member.voice.channel.setChannel
Store this function in bot/components, e.g. bot/components/migrator.js
bot/components
bot/components/migrator.js
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 andchannel
is a VoiceChannel object.member
should give you access tomember.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