Class DiscordAllowedMentionsData
Represents a discord Allowed Mentions Structure API model. Docs: https://discord.com/developers/docs/resources/channel#allowed-mentions-object-allowed-mentions-structure
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Color_Chan.Discord.Core.Common.API.DataModels
Assembly: Color-Chan.Discord.Core.dll
Syntax
public class DiscordAllowedMentionsData : IEquatable<DiscordAllowedMentionsData>
Properties
| Improve this Doc View SourceAllowed
an array of allowed mention types to parse from the content.
Declaration
[JsonPropertyName("parse")]
public IEnumerable<DiscordAllowedMentionsType> Allowed { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<DiscordAllowedMentionsType> |
AllowedRoles
Array of role_ids to mention (Max size of 100).
Declaration
[JsonPropertyName("roles")]
public IEnumerable<ulong> AllowedRoles { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<System.UInt64> |
AllowedUsers
Array of role_ids to mention (Max size of 100).
Declaration
[JsonPropertyName("users")]
public IEnumerable<ulong> AllowedUsers { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<System.UInt64> |
ShouldReplyMentionsAuthor
For replies, whether to mention the author of the message being replied to (default false).
Declaration
[JsonPropertyName("replied_user")]
public bool ShouldReplyMentionsAuthor { get; set; }
Property Value
Type | Description |
---|---|
Boolean |