@FiveStarBot.command(pass_context=True)
async def globalmessage(cxt, *, text : str):
x = message.server.members
for member in x:
await FiveStarBot.send_message(member.name, text)
The error is clear. message is an object of type Command, and there is no such attribute as server in this class, i.e. you cannot do message.server.. Maybe you expected message to be of a different type?
@FiveStarBot.command(pass_context=True)
async def globalmessage(ctx, *, text : str):
for member in ctx.message.server.members:
await FiveStarBot.send_message(member, text)
messageis an object of typeCommand, and there is no such attribute asserverin this class, i.e. you cannot domessage.server.. Maybe you expectedmessageto be of a differenttype?