1
0
Fork 1
mirror of https://github.com/TeamOctolings/Octobot.git synced 2025-05-04 04:56:30 +03:00

Remora.Discord part 4 out of ∞ (well that was painful)

Signed-off-by: Octol1ttle <l1ttleofficial@outlook.com>
This commit is contained in:
Octol1ttle 2023-05-29 22:49:25 +05:00
parent 67a15f3822
commit f7dd09d43e
Signed by: Octol1ttle
GPG key ID: B77C34313AEE1FFF
8 changed files with 231 additions and 13 deletions

View file

@ -7,9 +7,11 @@ using Remora.Discord.API.Abstractions.Objects;
using Remora.Discord.API.Objects;
using Remora.Discord.Caching.Extensions;
using Remora.Discord.Caching.Services;
using Remora.Discord.Commands.Extensions;
using Remora.Discord.Gateway;
using Remora.Discord.Gateway.Extensions;
using Remora.Discord.Hosting.Extensions;
using Remora.Discord.Interactivity.Extensions;
using Remora.Rest.Core;
namespace Boyfriend;
@ -62,7 +64,13 @@ public class Boyfriend {
services.AddTransient<IConfigurationBuilder, ConfigurationBuilder>();
services.Configure<DiscordGatewayClientOptions>(
options => options.Intents |= GatewayIntents.MessageContents | GatewayIntents.GuildMembers);
options => options.Intents |= GatewayIntents.MessageContents
| GatewayIntents.GuildMembers
| GatewayIntents.GuildScheduledEvents);
services.AddDiscordCommands();
services.AddInteractivity();
services.AddInteractionGroup<InteractionResponders>();
}
).ConfigureLogging(
c => c.AddConsole()