Skip to content

Commit

Permalink
Appended filter for both view only perms and view + send messages perms
Browse files Browse the repository at this point in the history
  • Loading branch information
Domin0de committed Oct 13, 2023
1 parent 7f56175 commit 085e19c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion commands/course.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const is_valid_course = (course) => {
};

const in_overwrites = (overwrites, id) =>
overwrites.find((v, k) => k === id)?.allow?.bitfield === 1024n;
[1024n, 3072n].includes(overwrites.find((v, k) => k === id)?.allow?.bitfield);

module.exports = {
data: new SlashCommandBuilder()
Expand Down
2 changes: 1 addition & 1 deletion commands/rolesPermOverride.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const is_valid_course_name = (course) => {
};

const in_overwrites = (overwrites, id) =>
overwrites.find((v, k) => k === id)?.allow?.bitfield === 1024n;
[1024n, 3072n].includes(overwrites.find((v, k) => k === id)?.allow?.bitfield);

async function editChannels(interaction, channels) {
for (const data of channels) {
Expand Down

0 comments on commit 085e19c

Please sign in to comment.