Method AddDefaultRoles
- Namespace
- DSharpPlus.Entities
- Assembly
- DSharpPlus.dll
AddDefaultRoles(IEnumerable<DiscordRole>)
Adds a collections of DiscordRoles to this component.
public DiscordRoleSelectComponent AddDefaultRoles(IEnumerable<DiscordRole> roles)
Parameters
roles
IEnumerable<DiscordRole>Collection of DiscordRoles
Returns
AddDefaultRoles(IEnumerable<ulong>)
Collections of role ids to add as default values.
public DiscordRoleSelectComponent AddDefaultRoles(IEnumerable<ulong> ids)
Parameters
ids
IEnumerable<ulong>Collection of DiscordRole ids