Skip to content

Commit

Permalink
Fix for a container issue
Browse files Browse the repository at this point in the history
Please see the "Known Bugs" section of this release of Discord.Net: https://github.com/discord-net/Discord.Net/releases/tag/3.15.0

#!components: grid-bot
  • Loading branch information
jf-06 committed Jul 3, 2024
1 parent 390a7e0 commit 6f407ed
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions services/grid-bot/src/Runner.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@

using LogLevel = Logging.LogLevel;
using MELLogLevel = Microsoft.Extensions.Logging.LogLevel;
using Discord.Rest;

internal static class Runner
{
Expand Down Expand Up @@ -180,6 +181,7 @@ private static ServiceProvider InitializeServices()

services.AddSingleton(config)
.AddSingleton(interactionServiceConfig)
.AddSingleton<IRestClientProvider>(x => x.GetRequiredService<DiscordShardedClient>())
.AddSingleton<DiscordShardedClient>()
.AddSingleton<InteractionService>();

Expand Down

0 comments on commit 6f407ed

Please sign in to comment.