feat(bot): add support for Discord message context commands (#513)
This commit is contained in:
@@ -2,8 +2,16 @@ namespace Myriad.Types;
|
||||
|
||||
public record ApplicationCommand
|
||||
{
|
||||
public enum ApplicationCommandType
|
||||
{
|
||||
ChatInput = 1,
|
||||
User = 2,
|
||||
Message = 3,
|
||||
}
|
||||
|
||||
public ulong Id { get; init; }
|
||||
public ulong ApplicationId { get; init; }
|
||||
public ApplicationCommandType Type { get; init; }
|
||||
public string Name { get; init; }
|
||||
public string Description { get; init; }
|
||||
public ApplicationCommandOption[]? Options { get; init; }
|
||||
|
@@ -6,5 +6,14 @@ public record ApplicationCommandInteractionData
|
||||
public string? Name { get; init; }
|
||||
public ApplicationCommandInteractionDataOption[]? Options { get; init; }
|
||||
public string? CustomId { get; init; }
|
||||
public ulong? TargetId { get; init; }
|
||||
public ComponentType? ComponentType { get; init; }
|
||||
public InteractionResolvedData Resolved { get; init; }
|
||||
public MessageComponent[]? Components { get; init; }
|
||||
|
||||
public record InteractionResolvedData
|
||||
{
|
||||
public Dictionary<ulong, Message>? Messages { get; init; }
|
||||
public Dictionary<ulong, User>? Users { get; init; }
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user