Struct RoleMention
Allows @role pings to mention in the message.
Assembly: DisCatSharp.dll
Syntax
public readonly struct RoleMention : IMention
Constructors
|
Improve this Doc
View Source
RoleMention(DiscordRole)
Allows the specific role to be mentioned
Declaration
public RoleMention(DiscordRole role)
Parameters
|
Improve this Doc
View Source
RoleMention(UInt64)
Allows the specific id to be mentioned
Declaration
public RoleMention(ulong id)
Parameters
Type |
Name |
Description |
System.UInt64 |
id |
|
Fields
|
Improve this Doc
View Source
All
Allow the mentioning of all roles. Alias to DisCatSharp.Entities.RoleMention.#ctor constructor.
Declaration
public static readonly RoleMention All
Field Value
Properties
|
Improve this Doc
View Source
Id
Optional Id of the role that is allowed to be mentioned. If null, then all role mentions will be allowed.
Declaration
public readonly ulong? Id { get; }
Property Value
Type |
Description |
System.Nullable<System.UInt64> |
|
Operators
|
Improve this Doc
View Source
Implicit(DiscordRole to RoleMention)
Declaration
public static implicit operator RoleMention(DiscordRole role)
Parameters
Returns
Implements
Extension Methods