Browse Source

added ClientId, and ClientSecret. They default to null to avoid incompatibilities with previous code.

pull/1806/head
emorell96 4 years ago
parent
commit
64514661a7
1 changed files with 10 additions and 0 deletions
  1. +10
    -0
      src/Discord.Net.Rest/DiscordRestConfig.cs

+ 10
- 0
src/Discord.Net.Rest/DiscordRestConfig.cs View File

@@ -9,5 +9,15 @@ namespace Discord.Rest
{
/// <summary> Gets or sets the provider used to generate new REST connections. </summary>
public RestClientProvider RestClientProvider { get; set; } = DefaultRestClientProvider.Instance;

/// <summary>
/// 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!!
/// </summary>
public string ClientId { get; set; } = null;
/// <summary>
/// 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!!
/// </summary>
public string ClientSecret { get; set; } = null;
}
}

Loading…
Cancel
Save