I have this code
async def allroles(ctx):
output2 = ""
server = ctx.message.guild
role_id = server.roles[0]
for role in server.roles:
if role_id == 640586288029892618:
print("it´s everyone role")
else:
output2 +=f"{role.name} \n"
await ctx.send(output2)
where 640586288029892618 == @everyone I wanna write every role except everyone, but when I tried this it just wrote all roles include everyone, so I guess my try to not write it was wrong (and if there is option to instead ID of everyone use role_name so I don´t have to change it for every @everyone server role but write into
if role.name == "@everyone":
Skip
else:
output2 +=f"{role.name} \n"
await ctx.send(output2)
It would be nice. Thank you for helping me out!