feat: upgrade to .NET 6, refactor everything

This commit is contained in:
spiral
2021-11-26 21:10:56 -05:00
parent d28e99ba43
commit 1918c56937
314 changed files with 27954 additions and 27966 deletions

View File

@@ -1,11 +1,10 @@
namespace Myriad.Types
namespace Myriad.Types;
public enum ButtonStyle
{
public enum ButtonStyle
{
Primary = 1,
Secondary = 2,
Success = 3,
Danger = 4,
Link = 5
}
Primary = 1,
Secondary = 2,
Success = 3,
Danger = 4,
Link = 5
}

View File

@@ -1,8 +1,7 @@
namespace Myriad.Types
namespace Myriad.Types;
public enum ComponentType
{
public enum ComponentType
{
ActionRow = 1,
Button = 2
}
ActionRow = 1,
Button = 2
}

View File

@@ -1,14 +1,13 @@
namespace Myriad.Types
namespace Myriad.Types;
public record MessageComponent
{
public record MessageComponent
{
public ComponentType Type { get; init; }
public ButtonStyle? Style { get; init; }
public string? Label { get; init; }
public Emoji? Emoji { get; init; }
public string? CustomId { get; init; }
public string? Url { get; init; }
public bool? Disabled { get; init; }
public MessageComponent[]? Components { get; init; }
}
public ComponentType Type { get; init; }
public ButtonStyle? Style { get; init; }
public string? Label { get; init; }
public Emoji? Emoji { get; init; }
public string? CustomId { get; init; }
public string? Url { get; init; }
public bool? Disabled { get; init; }
public MessageComponent[]? Components { get; init; }
}