summary refs log tree commit diff
path: root/util/scripts/rights.js
diff options
context:
space:
mode:
authorMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-09-25 00:12:55 +1000
committerMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-09-25 00:12:55 +1000
commit170d048db29ff830ad724039ac9328e62305aa8d (patch)
tree2a10f8fe81b0da58a43b67c7a881597145452ce8 /util/scripts/rights.js
parentLiterally don't be an idiot (diff)
downloadserver-170d048db29ff830ad724039ac9328e62305aa8d.tar.xz
Committed the wrong rights script
Diffstat (limited to '')
-rw-r--r--util/scripts/rights.js20
1 files changed, 20 insertions, 0 deletions
diff --git a/util/scripts/rights.js b/util/scripts/rights.js
new file mode 100644
index 00000000..289071f6
--- /dev/null
+++ b/util/scripts/rights.js
@@ -0,0 +1,20 @@
+const { Rights } = require("..");
+
+const allRights = new Rights(1).bitfield;
+console.log(`All rights:`, allRights);
+
+var discordLike = allRights;
+discordLike -= Rights.FLAGS.OPERATOR;
+discordLike -= Rights.FLAGS.MANAGE_APPLICATIONS;
+discordLike -= Rights.FLAGS.MANAGE_GUILDS;
+discordLike -= Rights.FLAGS.MANAGE_MESSAGES;
+discordLike -= Rights.FLAGS.MANAGE_RATE_LIMITS;
+discordLike -= Rights.FLAGS.MANAGE_ROUTING;
+discordLike -= Rights.FLAGS.MANAGE_TICKETS;
+discordLike -= Rights.FLAGS.MANAGE_USERS;
+discordLike -= Rights.FLAGS.ADD_MEMBERS;
+discordLike -= Rights.FLAGS.BYPASS_RATE_LIMITS;
+discordLike -= Rights.FLAGS.CREDITABLE;
+discordLike -= Rights.FLAGS.MANAGE_GUILD_DIRECTORY;
+discordLike -= Rights.FLAGS.SEND_BACKDATED_EVENTS;
+console.log(`Discord.com-like rights:`, discordLike);
\ No newline at end of file