str' object has no attribute guild
spiga.org.mx › qrokjm › str&AttributeError: 'str' object has no attribute 'guild' The code that I have been using to set the per server prefix command is: async def prefix (bot, message): guild = message.guild # only allow custom prefixes in that one guild if guild: return custom_prefixes.get (guild.id, default_prefixes) else: return default_prefixes bot = commands.Bot .