|
|
@@ -11,6 +11,7 @@ using System.Collections.Generic; |
|
|
|
using System.Linq; |
|
|
|
using System.Threading.Tasks; |
|
|
|
using Discord.Rest.Extensions; |
|
|
|
using static Discord.Rest.Extensions.ServiceCollectionExtensions; |
|
|
|
|
|
|
|
namespace _04_simple_blazor_discord_login |
|
|
|
{ |
|
|
@@ -30,7 +31,7 @@ namespace _04_simple_blazor_discord_login |
|
|
|
services.AddRazorPages(); |
|
|
|
services.AddServerSideBlazor(); |
|
|
|
services.AddSingleton<WeatherForecastService>(); |
|
|
|
services.AddDiscordRestClient(); |
|
|
|
services.AddDiscordRestClient(() => new DiscordSecretOptions { ClientId = "Your Client Id", ClientSecret = "Your Client Secret here"}); |
|
|
|
} |
|
|
|
|
|
|
|
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline. |
|
|
|