From 4d171fef0698eee4f653a1b5e83aa50893064cf8 Mon Sep 17 00:00:00 2001 From: jonas747 Date: Fri, 4 Jan 2019 03:04:30 +0100 Subject: [PATCH] soundboard: don't list sounds when playing sound you dont have access to --- soundboard/bot.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/soundboard/bot.go b/soundboard/bot.go index c0212eea7f..2fab950211 100644 --- a/soundboard/bot.go +++ b/soundboard/bot.go @@ -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()