Changed a bunch of perms, shouldn't have any issues now
diff --git a/src/commands/user/track.ts b/src/commands/user/track.ts
index f6c1df1..c2e0986 100644
--- a/src/commands/user/track.ts
+++ b/src/commands/user/track.ts
@@ -166,10 +166,12 @@
if (member.id === interaction.guild.ownerId) return true
// Check if the user can manage any of the tracks
let managed = false
- tracks.forEach(element => {
- if (!element.track.manageableBy) return
- if (element.track.manageableBy.some(role => member.roles.cache.has(role))) managed = true
- });
+ for (const element of tracks) {
+ if (!element.track.manageableBy) continue
+ if (!element.track.manageableBy.some(role => member.roles.cache.has(role))) continue
+ managed = true;
+ break;
+ };
// Check if the user has manage_roles permission
if (!managed && ! member.permissions.has("MANAGE_ROLES")) throw "You do not have the *Manage Roles* permission";
// Allow track