Can you help me why I keep getting this error? AttributeError: 'str' object has no attribute 'server'
@commands.has_role("customer")
async def email(ctx,count=None,bomb_email=None,*,message=None):
if message.server is not None:
await ctx.send("nope")
else:
x = int(count)
if message.server is not None:
await ctx.send("yes")
else:
await ctx.send("nope")
serverattribute. Str doesn't have that attribute so it gives error.