Skip to content
This repository was archived by the owner on Apr 23, 2025. It is now read-only.

Commit ca322d9

Browse files
committed
Update deps
1 parent 24fe3ca commit ca322d9

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

src/Events/Handlers/MessageCreatedEventHandler.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public MessageCreatedEventHandler(UserActivityTracker userActivityTracker, Datab
2828
public async Task ExecuteAsync(DiscordClient _, MessageCreateEventArgs eventArgs)
2929
{
3030
this._userActivityTracker.UpdateUser(eventArgs.Author.Id, eventArgs.Channel.Id);
31-
bool shouldSilence = eventArgs.Message.Flags?.HasFlag(MessageFlags.SupressNotifications) ?? false;
31+
bool shouldSilence = eventArgs.Message.Flags?.HasFlag(MessageFlags.SuppressNotifications) ?? false;
3232

3333
// Ensure the channel is a redirect channel
3434
if (eventArgs.Message.Channel is null || !this._database.IsRedirect(eventArgs.Message.Channel.Id))

src/NotifierRedirecter.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<PackageReference Include="Microsoft.Extensions.Configuration.EnvironmentVariables" Version="8.0.0" />
1515
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="8.0.0" />
1616
<PackageReference Include="Microsoft.Extensions.Logging" Version="8.0.0" />
17-
<PackageReference Include="DSharpPlus.Commands" Version="5.0.0-nightly-02000" />
17+
<PackageReference Include="DSharpPlus.Commands" Version="5.0.0-nightly-02016" />
1818
<PackageReference Include="Serilog" Version="3.1.1" />
1919
<PackageReference Include="Serilog.Enrichers.Thread" Version="3.1.0" />
2020
<PackageReference Include="Serilog.Extensions.Hosting" Version="8.0.0" />

src/Program.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
using System.Threading.Tasks;
55
using DSharpPlus;
66
using DSharpPlus.Commands;
7+
using DSharpPlus.Commands.Processors.SlashCommands;
8+
using DSharpPlus.Commands.Processors.TextCommands;
79
using Microsoft.Extensions.Configuration;
810
using Microsoft.Extensions.DependencyInjection;
911
using Microsoft.Extensions.Logging;
@@ -115,7 +117,7 @@ public static async Task Main(string[] args)
115117
DiscordClient client = new(new DiscordConfiguration()
116118
{
117119
Token = discordToken,
118-
Intents = DiscordIntents.Guilds | DiscordIntents.GuildMessages | DiscordIntents.MessageContents,
120+
Intents = TextCommandProcessor.RequiredIntents | SlashCommandProcessor.RequiredIntents | DiscordIntents.MessageContents,
119121
LoggerFactory = serviceProvider.GetRequiredService<ILoggerFactory>(),
120122
LogUnknownEvents = false
121123
});

0 commit comments

Comments
 (0)