Skip to content

Commit 5e244ca

Browse files
authored
.
1 parent d70a539 commit 5e244ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/evt/messageCreate.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ const updatePinnedMessage = async (ctx: Context) => {
4040
const lockUnlockChannel = async (ctx: Context, guildId: string, channelId: string, lock: boolean) => {
4141
let flags = await ctx.rest.fetchChannel(channelId).then((x: any) => x.permission_overwrites.find((o: any) => o.id == guildId).deny);
4242
let operator = lock ? " | " : " & ~";
43-
let deny = (`String(BigInt(flags) ${operator}BigInt(2048))`);
43+
let deny = eval(`String(BigInt(flags) ${operator}BigInt(2048))`);
4444
await ctx.rest.editChannelOverwrite(channelId, guildId, { deny });
4545
}
4646

0 commit comments

Comments
 (0)