From 966625bac430316f9f553d33f93d7fe099a2c26a Mon Sep 17 00:00:00 2001 From: Lukas | AstroGD Date: Fri, 25 Nov 2022 18:41:15 +0100 Subject: [PATCH] Change logchannel default permission --- src/commands/ci.ts | 2 +- src/commands/index.ts | 2 +- src/commands/{notification.ts => logchannel.ts} | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) rename src/commands/{notification.ts => logchannel.ts} (98%) 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");