Method AddDefaultRole
- Namespace
- DSharpPlus.Entities
- Assembly
- DSharpPlus.dll
AddDefaultRole(DiscordRole)
Adds a default role to this component.
public DiscordRoleSelectComponent AddDefaultRole(DiscordRole role)
Parameters
role
DiscordRoleRole to add
Returns
AddDefaultRole(ulong)
Adds a default role to this component.
public DiscordRoleSelectComponent AddDefaultRole(ulong id)
Parameters
id
ulongId of a DiscordRole