Initial commit, basic proxying working

This commit is contained in:
Ske
2020-12-22 13:15:26 +01:00
parent c3f6becea4
commit a6fbd869be
109 changed files with 3539 additions and 359 deletions

View File

@@ -0,0 +1,19 @@
using System.Collections.Generic;
namespace Myriad.Rest.Types
{
public record AllowedMentions
{
public enum ParseType
{
Roles,
Users,
Everyone
}
public List<ParseType>? Parse { get; set; }
public List<ulong>? Users { get; set; }
public List<ulong>? Roles { get; set; }
public bool RepliedUser { get; set; }
}
}

View File

@@ -0,0 +1,6 @@
using System.IO;
namespace Myriad.Rest.Types
{
public record MultipartFile(string Filename, Stream Data);
}

View File

@@ -0,0 +1,13 @@
using System.Collections.Generic;
using Myriad.Types;
namespace Myriad.Rest.Types
{
public record ApplicationCommandRequest
{
public string Name { get; init; }
public string Description { get; init; }
public List<ApplicationCommandOption>? Options { get; init; }
}
}

View File

@@ -0,0 +1,4 @@
namespace Myriad.Rest.Types.Requests
{
public record CreateWebhookRequest(string Name);
}

View File

@@ -0,0 +1,13 @@
using Myriad.Types;
namespace Myriad.Rest.Types.Requests
{
public record ExecuteWebhookRequest
{
public string? Content { get; init; }
public string? Username { get; init; }
public string? AvatarUrl { get; init; }
public Embed[] Embeds { get; init; }
public AllowedMentions? AllowedMentions { get; init; }
}
}

View File

@@ -0,0 +1,10 @@
using Myriad.Types;
namespace Myriad.Rest.Types.Requests
{
public record MessageEditRequest
{
public string? Content { get; set; }
public Embed? Embed { get; set; }
}
}

View File

@@ -0,0 +1,13 @@
using Myriad.Types;
namespace Myriad.Rest.Types.Requests
{
public record MessageRequest
{
public string? Content { get; set; }
public object? Nonce { get; set; }
public bool Tts { get; set; }
public AllowedMentions AllowedMentions { get; set; }
public Embed? Embeds { get; set; }
}
}

View File

@@ -0,0 +1,7 @@
namespace Myriad.Rest.Types
{
public record ModifyGuildMemberRequest
{
public string? Nick { get; init; }
}
}