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
No known key found for this signature in database
GPG key ID: A6059F0CA0E1BD31
4 changed files with 19 additions and 14 deletions

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) =>