resetting linux lol
diff --git a/src/utils/calculate.ts b/src/utils/calculate.ts
index a58fae1..7f3b16d 100644
--- a/src/utils/calculate.ts
+++ b/src/utils/calculate.ts
@@ -1,8 +1,7 @@
const logs = [
"channelUpdate",
- "channelPinsUpdate", // TODO
"emojiUpdate",
- "stickerUpdate", // TODO
+ "stickerUpdate",
"guildUpdate",
"guildMemberUpdate",
"guildMemberPunish",
@@ -14,13 +13,12 @@
"messageReactionUpdate",
"messagePing",
"messageMassPing",
- "messageAnnounce", // TODO
+ "messageAnnounce",
"threadUpdate",
- "webhookUpdate", // TODO
+ "webhookUpdate",
"guildMemberVerify",
- "autoModeratorDeleted", // TODO
- "nucleusSettingsUpdated", // TODO
- ""
+ "autoModeratorDeleted", // TODO: Not implemented
+ "nucleusSettingsUpdated"
]
const tickets = [
@@ -51,7 +49,7 @@
let permissions = [];
let int = (BigInt("0x" + permissionsHex)).toString(2).split('').reverse();
for (let index in int) {
- if (int[index] == "1") {
+ if (int[index] == "1" && array.length > index) {
permissions.push(array[index]);
}
}