-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProvisionedMessage.cs
More file actions
29 lines (21 loc) · 1.12 KB
/
Copy pathProvisionedMessage.cs
File metadata and controls
29 lines (21 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
namespace RustPlusBot.Domain.Workspace;
/// <summary>An anchored bot message, edited in place rather than re-posted.</summary>
public sealed class ProvisionedMessage
{
/// <summary>Surrogate primary key.</summary>
public Guid Id { get; set; } = Guid.NewGuid();
/// <summary>The owning Discord guild snowflake.</summary>
public ulong GuildId { get; set; }
/// <summary>The server this message belongs to, or <c>null</c> for a global message.</summary>
public Guid? RustServerId { get; set; }
/// <summary>The stable spec key (e.g. "information.main", "settings.main", "server.info").</summary>
public string MessageKey { get; set; } = string.Empty;
/// <summary>The channel the message lives in.</summary>
public ulong DiscordChannelId { get; set; }
/// <summary>The anchored message snowflake.</summary>
public ulong DiscordMessageId { get; set; }
/// <summary>When the record was first created (UTC).</summary>
public DateTimeOffset CreatedAt { get; set; }
/// <summary>When the message was last edited in place (UTC).</summary>
public DateTimeOffset UpdatedAt { get; set; }
}