addRole

@DeprecatedSinceKord(version = "0.7.0")
inline suspend fun GuildBehavior.addRole(builder: RoleCreateBuilder.() -> Unit = {}): Role

Requests to add a new role to this guild.

Return

The created Role.

Throws

dev.kord.rest.request.RestRequestException

if something went wrong during the request.

Sources

jvm source
Link copied to clipboard