Add basic interactivity framework

This commit is contained in:
Ske
2021-05-30 16:45:29 +02:00
parent b894a9f86e
commit 4bd2d06b0b
12 changed files with 245 additions and 27 deletions

View File

@@ -1,6 +1,4 @@
using System.Collections.Generic;
namespace Myriad.Types
namespace Myriad.Types
{
public record ApplicationCommand
{

View File

@@ -6,6 +6,6 @@
public string? Name { get; init; }
public ApplicationCommandInteractionDataOption[]? Options { get; init; }
public string? CustomId { get; init; }
public MessageComponent.ComponentType? ComponentType { get; init; }
public ComponentType? ComponentType { get; init; }
}
}

View File

@@ -1,15 +1,14 @@
using System.Collections.Generic;
using Myriad.Rest.Types;
using Myriad.Rest.Types;
namespace Myriad.Types
{
public record InteractionApplicationCommandCallbackData
{
public bool? Tts { get; init; }
public string Content { 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; }
}
}