summary refs log tree commit diff
path: root/scripts/rights.js
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/rights.js')
-rw-r--r--scripts/rights.js20
1 files changed, 20 insertions, 0 deletions
diff --git a/scripts/rights.js b/scripts/rights.js
new file mode 100644
index 00000000..289071f6
--- /dev/null
+++ b/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