diff options
author | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2022-09-25 18:24:21 +1000 |
---|---|---|
committer | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2022-09-25 23:35:18 +1000 |
commit | f44f5d7ac2d24ff836c2e1d4b2fa58da04b13052 (patch) | |
tree | a6655c41bb3db79c30fd876b06ee60fe9cf70c9b /scripts/rights.js | |
parent | Allow edited_timestamp to passthrough in handleMessage (diff) | |
download | server-f44f5d7ac2d24ff836c2e1d4b2fa58da04b13052.tar.xz |
Refactor to mono-repo + upgrade packages
Diffstat (limited to 'scripts/rights.js')
-rw-r--r-- | scripts/rights.js | 20 |
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 |