Struct RoleMention
- Namespace
- DSharpPlus.Entities
- Assembly
- DSharpPlus.dll
Allows @role pings to mention in the message.
public readonly struct RoleMention : IMention
- Implements
Remarks
Allows the specific id to be mentioned
Constructors
- RoleMention(DiscordRole)
Allows the specific role to be mentioned
- RoleMention(ulong)
Allows @role pings to mention in the message.
Fields
- All
Allow the mentioning of all roles. Alias to RoleMention() constructor.
Properties
- Id
Optional Id of the role that is allowed to be mentioned. If null, then all role mentions will be allowed.