We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d70a539 commit 5e244caCopy full SHA for 5e244ca
src/evt/messageCreate.ts
@@ -40,7 +40,7 @@ const updatePinnedMessage = async (ctx: Context) => {
40
const lockUnlockChannel = async (ctx: Context, guildId: string, channelId: string, lock: boolean) => {
41
let flags = await ctx.rest.fetchChannel(channelId).then((x: any) => x.permission_overwrites.find((o: any) => o.id == guildId).deny);
42
let operator = lock ? " | " : " & ~";
43
- let deny = (`String(BigInt(flags) ${operator}BigInt(2048))`);
+ let deny = eval(`String(BigInt(flags) ${operator}BigInt(2048))`);
44
await ctx.rest.editChannelOverwrite(channelId, guildId, { deny });
45
}
46
0 commit comments