Table of Contents

Method AddDefaultRole

Namespace
DSharpPlus.Entities
Assembly
DSharpPlus.dll

AddDefaultRole(DiscordRole)

Adds a default role to this component.

public DiscordRoleSelectComponent AddDefaultRole(DiscordRole role)

Parameters

role DiscordRole

Role to add

Returns

DiscordRoleSelectComponent

AddDefaultRole(ulong)

Adds a default role to this component.

public DiscordRoleSelectComponent AddDefaultRole(ulong id)

Parameters

id ulong

Id of a DiscordRole

Returns

DiscordRoleSelectComponent