Feature/5 rework default permissions for slash commands #8

Merged
AstroGD merged 3 commits from feature/5-rework-default-permissions-for-slash-commands into dev 2022-11-25 18:55:36 +01:00
3 changed files with 3 additions and 3 deletions
Showing only changes of commit 966625bac4 - Show all commits

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