mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-12-08 18:32:32 -05:00
[Core] Server based prefixes (#492)
Added `[p]set serverprefix` `Bot.command_prefix` is now a callable that returns the prefixes set for the server. If none are set, it returns the global ones.
This commit is contained in:
@@ -745,8 +745,8 @@ class Audio:
|
||||
song = await self._guarantee_downloaded(server, url)
|
||||
except MaximumLength:
|
||||
log.warning("I can't play URL below because it is too long."
|
||||
" Use {}audioset maxlength to change this.\n\n"
|
||||
"{}".format(self.bot.command_prefix[0], url))
|
||||
" Use [p]audioset maxlength to change this.\n\n"
|
||||
"{}".format(url))
|
||||
raise
|
||||
local = False
|
||||
else: # Assume local
|
||||
|
||||
Reference in New Issue
Block a user