Skip to content

Commit 0969437

Browse files
committed
turns out this was just a permission issue
This reverts commit 1521004.
1 parent 1521004 commit 0969437

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

app/services/discord/modules/commands/TempVoiceChannel.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,12 @@ export const SlashVoiceCommand: SlashCommand = {
4949
name: ctx.options.getString("name", true),
5050
type: Discord.ChannelType.GuildVoice,
5151
parent: bot.config.categories.voiceChat,
52+
permissionOverwrites: [
53+
{ id: ctx.user.id, allow: ["ManageChannels", "ManageRoles"] },
54+
],
5255
reason: `temp channel command from <@${ctx.user.id}> (${ctx.user.id})`,
5356
});
5457
if (channel) {
55-
await channel.edit({
56-
permissionOverwrites: [
57-
{ id: ctx.user.id, allow: ["ManageChannels", "ManageRoles"] },
58-
],
59-
});
6058
pending.push(ctx.user.id);
6159
setTimeout(async () => {
6260
const updatedChannel = (await bot

0 commit comments

Comments
 (0)