We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9bbe3be commit 2034540Copy full SHA for 2034540
src/main/kotlin/dev/arbjerg/ukulele/api/PlayerController.kt
@@ -209,4 +209,14 @@ class PlayerController(
209
// Only say if there is a text channel the bot last spoke in
210
player.lastChannel?.sendMessage(text)?.queue()
211
}
212
+
213
+ @PostMapping("/player/{guildId}/move")
214
+ suspend fun move(@PathVariable guildId: Long, @RequestBody body: Map<String, String>) {
215
+ val guild = shardManager.getGuildById(guildId) ?: return
216
+ val channelId = body["channelId"] ?: return
217
+ val channel = guild.getVoiceChannelById(channelId)
218
+ if (channel != null) {
219
+ guild.audioManager.openAudioConnection(channel)
220
+ }
221
222
0 commit comments