From 64514661a7517bb417fd83a0aa4656525e5bfec1 Mon Sep 17 00:00:00 2001 From: emorell96 Date: Tue, 23 Mar 2021 22:35:20 -0700 Subject: [PATCH] added ClientId, and ClientSecret. They default to null to avoid incompatibilities with previous code. --- src/Discord.Net.Rest/DiscordRestConfig.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/Discord.Net.Rest/DiscordRestConfig.cs b/src/Discord.Net.Rest/DiscordRestConfig.cs index 7bf7440ce..a6f0094b0 100644 --- a/src/Discord.Net.Rest/DiscordRestConfig.cs +++ b/src/Discord.Net.Rest/DiscordRestConfig.cs @@ -9,5 +9,15 @@ namespace Discord.Rest { /// Gets or sets the provider used to generate new REST connections. public RestClientProvider RestClientProvider { get; set; } = DefaultRestClientProvider.Instance; + + /// + /// The client Id provided by Discord. Provide this if you want to use the refresh token features. Else they will throw errors if you atempt to use them!! + /// + public string ClientId { get; set; } = null; + /// + /// The client secret provided by Discord. Provide this if you want to use the refresh token features. Else they will throw errors if you atempt to use them!! + /// + public string ClientSecret { get; set; } = null; } + }