Change logchannel default permission

This commit is contained in:
Lukas | AstroGD 2022-11-25 18:41:15 +01:00
parent cc50a0a089
commit 966625bac4
Signed by: AstroGD
GPG Key ID: 82A5E6C236C535AA
3 changed files with 3 additions and 3 deletions

View File

@ -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";

View File

@ -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";

View File

@ -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");