Skip to content

Commit

Permalink
Set default perms for manage-channel-starboard
Browse files Browse the repository at this point in the history
Previously, was denied to all users by default.
Now, enabled for those w/ `ManageChannels`.
  • Loading branch information
LewsTherinTelescope authored and marvin-roesch committed Feb 23, 2023
1 parent 1a543bc commit 85ff65c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ const cmds: ApplicationCommandDataResolvable[] = [
{
type: ApplicationCommandType.ChatInput,
name: 'manage-channel-starboard',
default_permission: false,
defaultMemberPermissions: PermissionFlagsBits.ManageChannels,
description: 'Manage the starboard thread for a channel',
options: [
{
Expand All @@ -313,7 +313,7 @@ const cmds: ApplicationCommandDataResolvable[] = [
options: [
{
type: ApplicationCommandOptionType.Channel,
channel_types: [ChannelType.GuildPublicThread, ChannelType.GuildPrivateThread, ChannelType.GuildNewsThread],
channelTypes: [ChannelType.GuildPublicThread, ChannelType.GuildPrivateThread, ChannelType.GuildNewsThread],
name: 'thread',
description: 'Starboard thread for the channel',
required: true,
Expand All @@ -322,7 +322,7 @@ const cmds: ApplicationCommandDataResolvable[] = [
name: 'channel',
description: 'Channel to manage',
type: ApplicationCommandOptionType.Channel,
channel_types: [ChannelType.GuildText, ChannelType.GuildNews],
channelTypes: [ChannelType.GuildText, ChannelType.GuildNews],
required: false,
},
]
Expand All @@ -336,7 +336,7 @@ const cmds: ApplicationCommandDataResolvable[] = [
name: 'channel',
description: 'Channel to manage',
type: ApplicationCommandOptionType.Channel,
channel_types: [ChannelType.GuildText, ChannelType.GuildNews],
channelTypes: [ChannelType.GuildText, ChannelType.GuildNews],
required: false,
},
]
Expand Down

0 comments on commit 85ff65c

Please sign in to comment.