Class AllowedMentionsProperties
[JsonConverter(typeof(AllowedMentionsProperties.AllowedMentionsConverter))]
public class AllowedMentionsProperties
- Inheritance
-
AllowedMentionsProperties
- Inherited Members
Constructors
AllowedMentionsProperties()
public AllowedMentionsProperties()
Properties
All
public static AllowedMentionsProperties All { get; }
Property Value
AllowedRoles
Allowed roles, null for all.
public IEnumerable<ulong>? AllowedRoles { get; set; }
Property Value
AllowedUsers
Allowed users, null for all.
public IEnumerable<ulong>? AllowedUsers { get; set; }
Property Value
Everyone
Allows @everyone
and @here
.
public bool Everyone { get; set; }
Property Value
None
public static AllowedMentionsProperties None { get; }
Property Value
ReplyMention
Allows reply mention.
public bool ReplyMention { get; set; }
Property Value
Methods
AddAllowedRoles(IEnumerable<ulong>)
Allowed roles, null for all.
public AllowedMentionsProperties AddAllowedRoles(IEnumerable<ulong> allowedRoles)
Parameters
allowedRoles
IEnumerable<ulong>
Returns
AddAllowedRoles(params ulong[])
Allowed roles, null for all.
public AllowedMentionsProperties AddAllowedRoles(params ulong[] allowedRoles)
Parameters
allowedRoles
ulong[]
Returns
AddAllowedUsers(IEnumerable<ulong>)
Allowed users, null for all.
public AllowedMentionsProperties AddAllowedUsers(IEnumerable<ulong> allowedUsers)
Parameters
allowedUsers
IEnumerable<ulong>
Returns
AddAllowedUsers(params ulong[])
Allowed users, null for all.
public AllowedMentionsProperties AddAllowedUsers(params ulong[] allowedUsers)
Parameters
allowedUsers
ulong[]
Returns
WithAllowedRoles(IEnumerable<ulong>?)
Allowed roles, null for all.
public AllowedMentionsProperties WithAllowedRoles(IEnumerable<ulong>? allowedRoles)
Parameters
allowedRoles
IEnumerable<ulong>
Returns
WithAllowedUsers(IEnumerable<ulong>?)
Allowed users, null for all.
public AllowedMentionsProperties WithAllowedUsers(IEnumerable<ulong>? allowedUsers)
Parameters
allowedUsers
IEnumerable<ulong>
Returns
WithEveryone(bool)
Allows @everyone
and @here
.
public AllowedMentionsProperties WithEveryone(bool everyone = true)
Parameters
everyone
bool
Returns
WithReplyMention(bool)
Allows reply mention.
public AllowedMentionsProperties WithReplyMention(bool replyMention = true)
Parameters
replyMention
bool