Skip to content

Commit

Permalink
soundboard: don't list sounds when playing sound you dont have access to
Browse files Browse the repository at this point in the history
  • Loading branch information
jogramming committed Jan 4, 2019
1 parent b529f67 commit 4d171fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion soundboard/bot.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ func (p *Plugin) AddCommands() {
if sound == nil {
return "Sound not found, " + ListSounds(sounds, member), nil
} else if !CanPlaySound(sound, member.Roles) {
return "You can't play that sound, " + ListSounds(sounds, member), nil
return "You can't play that sound, either you have a blacklisted role or missing a required role for this sound", nil
}

data.GS.RLock()
Expand Down

0 comments on commit 4d171fe

Please sign in to comment.