From my tests and research the plugin need and update on the Send function from Class Request as it appear we need to specify header now (or like it should be) like :
public void Send()
{
var headers = new Dictionary<string, string>()
{
{"Content-Type", "application/json"}
};
_instance.webrequest.Enqueue(_url, _payload, (code, rawResponse) =>
{
var response = new BaseResponse()
{
Message = rawResponse,
Code = code
};
if (response.IsRatelimit)
{
response.SetRateLimit();
_handler.AddMessage(response.RateLimit, this);
}
if (response.IsBad)
{
_instance.PrintWarning("Failed! Discord responded with code: {0}. Plugin: {1}\n{2}", code, _plugin != null ? _plugin.Name : "Unknown Plugin", response.Message);
}
try
{
_response?.Invoke(response);
}
catch (Exception ex)
{
Interface.Oxide.LogException("[DiscordMessages] Request callback raised an exception!", ex);
}
}, _instance, Core.Libraries.RequestMethod.POST, headers);
}