Table of Contents

Class AllowedMentionsProperties

Namespace
NetCord.Rest
Assembly
NetCord.dll
[JsonConverter(typeof(AllowedMentionsProperties.AllowedMentionsConverter))]
public class AllowedMentionsProperties
Inheritance
AllowedMentionsProperties
Inherited Members

Constructors

AllowedMentionsProperties()

public AllowedMentionsProperties()

Properties

All

public static AllowedMentionsProperties All { get; }

Property Value

AllowedMentionsProperties

AllowedRoles

Allowed roles, null for all.

public IEnumerable<ulong>? AllowedRoles { get; set; }

Property Value

IEnumerable<ulong>

AllowedUsers

Allowed users, null for all.

public IEnumerable<ulong>? AllowedUsers { get; set; }

Property Value

IEnumerable<ulong>

Everyone

Allows @everyone and @here.

public bool Everyone { get; set; }

Property Value

bool

None

public static AllowedMentionsProperties None { get; }

Property Value

AllowedMentionsProperties

ReplyMention

Allows reply mention.

public bool ReplyMention { get; set; }

Property Value

bool

Methods

AddAllowedRoles(IEnumerable<ulong>)

Allowed roles, null for all.

public AllowedMentionsProperties AddAllowedRoles(IEnumerable<ulong> allowedRoles)

Parameters

allowedRoles IEnumerable<ulong>

Returns

AllowedMentionsProperties

AddAllowedRoles(params ulong[])

Allowed roles, null for all.

public AllowedMentionsProperties AddAllowedRoles(params ulong[] allowedRoles)

Parameters

allowedRoles ulong[]

Returns

AllowedMentionsProperties

AddAllowedUsers(IEnumerable<ulong>)

Allowed users, null for all.

public AllowedMentionsProperties AddAllowedUsers(IEnumerable<ulong> allowedUsers)

Parameters

allowedUsers IEnumerable<ulong>

Returns

AllowedMentionsProperties

AddAllowedUsers(params ulong[])

Allowed users, null for all.

public AllowedMentionsProperties AddAllowedUsers(params ulong[] allowedUsers)

Parameters

allowedUsers ulong[]

Returns

AllowedMentionsProperties

WithAllowedRoles(IEnumerable<ulong>?)

Allowed roles, null for all.

public AllowedMentionsProperties WithAllowedRoles(IEnumerable<ulong>? allowedRoles)

Parameters

allowedRoles IEnumerable<ulong>

Returns

AllowedMentionsProperties

WithAllowedUsers(IEnumerable<ulong>?)

Allowed users, null for all.

public AllowedMentionsProperties WithAllowedUsers(IEnumerable<ulong>? allowedUsers)

Parameters

allowedUsers IEnumerable<ulong>

Returns

AllowedMentionsProperties

WithEveryone(bool)

Allows @everyone and @here.

public AllowedMentionsProperties WithEveryone(bool everyone = true)

Parameters

everyone bool

Returns

AllowedMentionsProperties

WithReplyMention(bool)

Allows reply mention.

public AllowedMentionsProperties WithReplyMention(bool replyMention = true)

Parameters

replyMention bool

Returns

AllowedMentionsProperties