Music: only /music remove and /music move are commands
Pause, skip, repeat and stop are already buttons on the now-playing message. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
This commit is contained in:
1 parent
92c9f6b686
commit
88fc915f3b
5 files changed
+10
-65
No files matched your search
@@ -686,23 +686,6 @@ func ToggleRepeatQueue(guildID string) (bool, bool) {
|
||||
return repeatSong, repeatQueue
|
||||
}
|
||||
|
||||
// RepeatFlags reports whether the current song or the whole queue repeats.
|
||||
func RepeatFlags(guildID string) (song, queue bool) { return repeatFlags(guildID) }
|
||||
|
||||
// SetRepeat sets the repeat mode directly. At most one of the two applies;
|
||||
// asking for both repeats the song.
|
||||
func SetRepeat(guildID string, song, queue bool) {
|
||||
if manager == nil {
|
||||
return
|
||||
}
|
||||
gp := getOrCreateGuildPlayer(guildID)
|
||||
manager.mu.Lock()
|
||||
gp.RepeatSong = song
|
||||
gp.RepeatQueue = queue && !song
|
||||
manager.mu.Unlock()
|
||||
syncState(guildID)
|
||||
}
|
||||
|
||||
func repeatFlags(guildID string) (bool, bool) {
|
||||
if manager == nil {
|
||||
return false, false
|
||||
|
||||
Reference in new issue
Block a user