tgstation-server 6.19.3
The /tg/station 13 server suite
Loading...
Searching...
No Matches
DiscordMessage.cs
Go to the documentation of this file.
1using Remora.Discord.API.Abstractions.Objects;
2using Remora.Rest.Core;
3
5{
9 sealed class DiscordMessage : Message
10 {
14 public Snowflake? ApplicationId { get; }
15
19 public string? InteractionToken { get; }
20
24 public Optional<IMessageReference> MessageReference { get; set; }
25
34 public DiscordMessage(ChatUser user, string content, Optional<IMessageReference> messageReference, Snowflake? applicationId = null, string? interactionToken = null)
35 : base(
36 user,
37 content)
38 {
39 MessageReference = messageReference;
40 ApplicationId = applicationId;
41 InteractionToken = interactionToken;
42 }
43 }
44}
Represents a tgs_chat_user datum.
Definition ChatUser.cs:12
A Message containing the source IMessageReference.
DiscordMessage(ChatUser user, string content, Optional< IMessageReference > messageReference, Snowflake? applicationId=null, string? interactionToken=null)
Initializes a new instance of the DiscordMessage class.
Optional< IMessageReference > MessageReference
The IMessageReference of the source Message.
Snowflake? ApplicationId
The Discord application ID, if the source was an interaction.
string? InteractionToken
The Discord interaction token, if the source was an interaction.
Represents a message received by a IProvider.
Definition Message.cs:9