Class AllowedMentions
Defines which mentions and types of mentions that will notify users from the message content.
Assembly: Discord.Net.Core.dll​
View Source​
public class AllowedMentions
Properties​
None​
Gets a value which indicates that no mentions in the message content should notify users.
View Source​
public static AllowedMentions None { get; }
All​
Gets a value which indicates that all mentions in the message content should notify users.
View Source​
public static AllowedMentions All { get; }
AllowedTypes​
Gets or sets the type of mentions that will be parsed from the message content.
View Source​
public AllowedMentionTypes? AllowedTypes { get; set; }
RoleIds​
Gets or sets the list of all role ids that will be mentioned.
This property is mutually exclusive with the Discord.AllowedMentionTypes.Roles
flag of the Discord.AllowedMentions.AllowedTypes property. If the flag is set, the value of this property
must be null
or empty.
View Source​
public List<ulong> RoleIds { get; set; }
UserIds​
Gets or sets the list of all user ids that will be mentioned.
This property is mutually exclusive with the Discord.AllowedMentionTypes.Users
flag of the Discord.AllowedMentions.AllowedTypes property. If the flag is set, the value of this property
must be null
or empty.
View Source​
public List<ulong> UserIds { get; set; }
MentionRepliedUser​
Gets or sets whether to mention the author of the message you are replying to or not.
View Source​
public bool? MentionRepliedUser { get; set; }