K
Kord5mo ago
Hozer

Can't find a way to disconnect/kick someone

Hello, everyone! I have a bot made in Kord and I've used it a lot to play sounds based on VoiceState changes and timed stuff. Now I wanted to do some kind of routine to disconnect users who have been fully muted for a long time. I was able to get all active users/members/voicestates etc but I can't find a way to disconnect them from the voice channel, I searched through the docs but it seems I'm either using this lib in a wrong way (totally possible) or there's no disconnect/leave command or it has another "name". Thanks!
3 Replies
LustigerLurch
LustigerLurch5mo ago
you need to modify the member:
member.edit {
voiceChannelId = null
}
member.edit {
voiceChannelId = null
}
SchlaubiBus
SchlaubiBus5mo ago
That might be something where we can introduce a convenience function, since this is really inconvenient
Hozer
HozerOP5mo ago
Sorry for the late reply, I took a while to come back to that project. Thanks a lot, I'll try it out. A convenience function would be good but an example on the documentation or FAQ would be enough.
Want results from more Discord servers?
Add your server