mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-15 10:10:12 +00:00
Port the DM stuff
This commit is contained in:
parent
a2c8cbb560
commit
9079f1c59c
15 changed files with 95 additions and 77 deletions
|
|
@ -1,6 +1,9 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Net.Mail;
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
using Myriad.Utils;
|
||||
|
||||
namespace Myriad.Types
|
||||
{
|
||||
|
|
@ -59,8 +62,8 @@ namespace Myriad.Types
|
|||
public Reference? MessageReference { get; set; }
|
||||
public MessageFlags Flags { get; init; }
|
||||
|
||||
// todo: null vs. absence
|
||||
public Message? ReferencedMessage { get; init; }
|
||||
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
|
||||
public Optional<Message?> ReferencedMessage { get; init; }
|
||||
|
||||
public record Reference(ulong? GuildId, ulong? ChannelId, ulong? MessageId);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue