P
P
Peachuser2021-04-05 21:45:26
Python
Peachuser, 2021-04-05 21:45:26

How to remove the @everyone role from the list of roles in embed?

Good evening, tell me how to remove the @everyone role from the list of roles?

606b5ab6c199f231914354.png

emb.add_field(name="Роли на сервере:", value= ",".join(m.mention for m in ctx.author.roles),inline=False)

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
soremix, 2021-04-05
@SoreMix

How can that be

m.mention for m in ctx.author.roles if ‘everyone’ not in m.mention

E
Evgeniy _, 2021-04-05
@GeneD88

For a specific user:

client.remove_roles(ctx.message.author, 'everyone')

There is also for the server as a whole:
bot.delete_role(ctx.message.server, 'everyone')

M
Maxim Nevzorov, 2021-04-06
@fixator10

How to display a list of user roles in Embed?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question