L
L
Lukas Tumas2020-07-27 10:31:04
Python
Lukas Tumas, 2020-07-27 10:31:04

How to create a role with color?

Good afternoon, I want to create a role with color ->
await ctx.guild.create_role(name=f'{rname}', permissions=perms, color=discord.Colour.dark_blue)
Error - 'function' object has no attribute 'value' I

also tried await ctx.guild.create_role(name=f'{rname}', permissions=perms, colour=discord.Colour(255)) .
It worked, but not the colors.
255, 113, 178 no longer works.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
soremix, 2020-07-27
@Lubitelok

That's right, Color only accepts one number

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question