mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 13:06:50 +00:00
Add a few utility admin commands
Signed-off-by: Ske <voltasalt@gmail.com>
This commit is contained in:
parent
af5de7c892
commit
8740230c3d
9 changed files with 177 additions and 12 deletions
|
|
@ -1,14 +1,28 @@
|
|||
using Myriad.Rest.Types;
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
using Myriad.Rest.Types;
|
||||
using Myriad.Utils;
|
||||
|
||||
namespace Myriad.Types
|
||||
{
|
||||
public record InteractionApplicationCommandCallbackData
|
||||
{
|
||||
public bool? Tts { get; init; }
|
||||
public string? Content { get; init; }
|
||||
public Embed[]? Embeds { get; init; }
|
||||
public AllowedMentions? AllowedMentions { get; init; }
|
||||
public Message.MessageFlags Flags { get; init; }
|
||||
public MessageComponent[]? Components { get; init; }
|
||||
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
|
||||
public Optional<bool?> Tts { get; init; }
|
||||
|
||||
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
|
||||
public Optional<string?> Content { get; init; }
|
||||
|
||||
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
|
||||
public Optional<Embed[]?> Embeds { get; init; }
|
||||
|
||||
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
|
||||
public Optional<AllowedMentions?> AllowedMentions { get; init; }
|
||||
|
||||
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
|
||||
public Optional<Message.MessageFlags> Flags { get; init; }
|
||||
|
||||
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
|
||||
public Optional<MessageComponent[]?> Components { get; init; }
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue