feat(music): add a stop command
Clears the whole queue and disconnects, mirrors the existing Stop Manager function, just wires it up to the outbox like every other dashboard command.
This commit is contained in:
1 parent
da66eb8dd5
commit
52dfe859ee
2 files changed
+4
-1
No files matched your search
@@ -64,6 +64,9 @@ func dispatchCommand(cmd musicrepo.MusicCommand) error {
|
||||
case "resume":
|
||||
return Pause(guildID, false)
|
||||
|
||||
case "stop":
|
||||
return Stop(guildID)
|
||||
|
||||
case "set_volume":
|
||||
var payload struct {
|
||||
Volume int `json:"volume"`
|
||||
|
||||
Reference in new issue
Block a user