Discore
Show / Hide Table of Contents

Method SetRoles

| Improve this Doc View Source

SetRoles(IEnumerable<Snowflake>)

Sets the roles the member is to be assigned to.

Requires ManageRoles.

Declaration
public ModifyGuildMemberOptions SetRoles(IEnumerable<Snowflake> roleIds)
Parameters
Type Name Description
IEnumerable<Snowflake> roleIds

A list of IDs for each role the member is to be assigned to.

Returns
Type Description
ModifyGuildMemberOptions
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX