Interface IDiscordAllowedMentions
Represents a discord Allowed Mentions Structure API model. Docs: https://discord.com/developers/docs/resources/channel#allowed-mentions-object-allowed-mentions-structure
Namespace: Color_Chan.Discord.Core.Common.Models
Assembly: Color-Chan.Discord.Core.dll
Syntax
public interface IDiscordAllowedMentions
Properties
| Improve this Doc View SourceAllowed
an array of allowed mention types to parse from the content.
Declaration
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
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
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
bool ShouldReplyMentionsAuthor { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
Methods
| Improve this Doc View SourceToDataModel()
Converts the model back to a discord data model so that it can be send to discord.
Declaration
DiscordAllowedMentionsData ToDataModel()
Returns
Type | Description |
---|---|
DiscordAllowedMentionsData | The converted DiscordAllowedMentionsData. |