diff --git a/src/commands/ci.ts b/src/commands/ci.ts index 0c6db03..118f6a9 100644 --- a/src/commands/ci.ts +++ b/src/commands/ci.ts @@ -1,4 +1,4 @@ -import * as notification from "./notification"; +import * as notification from "./logchannel"; import * as blocklist from "./blocklist"; import * as info from "./info"; import * as preserveSettings from "./preserveSettings"; diff --git a/src/commands/index.ts b/src/commands/index.ts index 589dcfd..1c75687 100644 --- a/src/commands/index.ts +++ b/src/commands/index.ts @@ -1,5 +1,5 @@ import { ChatInputCommandInteraction, Collection, Events, SlashCommandBuilder } from "discord.js"; -import * as notification from "./notification"; +import * as notification from "./logchannel"; import * as blocklist from "./blocklist"; import * as info from "./info"; import * as preserveSettings from "./preserveSettings"; diff --git a/src/commands/notification.ts b/src/commands/logchannel.ts similarity index 98% rename from src/commands/notification.ts rename to src/commands/logchannel.ts index edf73c7..d9ac245 100644 --- a/src/commands/notification.ts +++ b/src/commands/logchannel.ts @@ -9,7 +9,7 @@ const builder = new SlashCommandBuilder(); builder.setName("logchannel"); builder.setDescription("Configures the log channel"); builder.setDMPermission(false); -builder.setDefaultMemberPermissions(PermissionFlagsBits.ManageChannels); +builder.setDefaultMemberPermissions(PermissionFlagsBits.ManageGuild); builder.addChannelOption((option) => { option.addChannelTypes(ChannelType.GuildText, ChannelType.GuildAnnouncement); option.setName("channel");