diff --git a/TrickfireCheckIn/Discord/Commands.cs b/TrickfireCheckIn/Discord/Commands.cs
index abe4e80..71b8130 100644
--- a/TrickfireCheckIn/Discord/Commands.cs
+++ b/TrickfireCheckIn/Discord/Commands.cs
@@ -18,7 +18,7 @@ public static class Commands
[Command("setcheckinchannel")]
[Description("Sets the channel the bot sends the checkin message to")]
[InteractionAllowedContexts(DiscordInteractionContextType.Guild)]
- [RequirePermissions(DiscordPermissions.None, DiscordPermissions.ManageGuild)]
+ [RequirePermissions([], [DiscordPermission.ManageGuild])]
public static async Task SetCheckInChannel(
SlashCommandContext context,
[Parameter("channel")]
@@ -27,12 +27,12 @@ DiscordChannel channel
) {
// Guild is not null because it cannot be called outsides guilds
DiscordPermissions permissions = channel.PermissionsFor(context.Guild!.CurrentMember);
- if (!permissions.HasPermission(DiscordPermissions.SendMessages | DiscordPermissions.AccessChannels))
+ if (!permissions.HasPermission(DiscordPermission.SendMessages | DiscordPermission.ViewChannel))
{
await context.RespondAsync("Bot does not have permission to send messages in that channel");
return;
}
- else if (!permissions.HasPermission(DiscordPermissions.ReadMessageHistory))
+ else if (!permissions.HasPermission(DiscordPermission.ReadMessageHistory))
// Delete old message
try
diff --git a/TrickfireCheckIn/TrickfireCheckIn.csproj b/TrickfireCheckIn/TrickfireCheckIn.csproj
index 3436b46..acb6975 100644
--- a/TrickfireCheckIn/TrickfireCheckIn.csproj
+++ b/TrickfireCheckIn/TrickfireCheckIn.csproj
@@ -2,14 +2,14 @@
Exe
- net8.0
+ net9.0
enable
enable
-
-
+
+