feat: specify custom Discord base URL

for use with twilight_http_proxy or similar
This commit is contained in:
spiral
2021-11-02 05:36:53 -04:00
parent 14b0e98791
commit b430446171
4 changed files with 19 additions and 14 deletions

View File

@@ -20,6 +20,8 @@ namespace PluralKit.Bot
public string? GatewayQueueUrl { get; set; }
public string? DiscordBaseUrl { get; set; }
public record ClusterSettings
{
public string NodeName { get; set; }

View File

@@ -48,7 +48,8 @@ namespace PluralKit.Bot
{
var client = new Myriad.Rest.DiscordApiClient(
c.Resolve<BotConfig>().Token,
c.Resolve<ILogger>()
c.Resolve<ILogger>(),
c.Resolve<BotConfig>().DiscordBaseUrl
);
client.OnResponseEvent += ((_, ev) =>