Use a dynamic endpoint for rc command
This commit is contained in:
parent
437ec8d117
commit
7cab8dbac0
@ -110,7 +110,8 @@ namespace ChaosBot.Discord.Modules.Admin
|
||||
using HttpClient client = new HttpClient();
|
||||
|
||||
Configuration config = new Configuration();
|
||||
string endpoint =config.GetByKey<string>("Lodestone:ChaosBotApi:Url").GetValue(readRestricted: true);
|
||||
string endpoint = config.GetByKey<string>("Lodestone:ChaosBotApi:Url").GetValue(readRestricted: true)
|
||||
.Replace("%GUILD_ID%", Context.Guild.Id.ToString());
|
||||
string apiToken = config.GetByKey<string>("Lodestone:ChaosBotApi:ApiToken").GetValue(readRestricted: true);
|
||||
|
||||
client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", apiToken);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user