Is this how I check if a user has boosted?
https://old.discordjs.dev/#/docs/discord.js/main/class/GuildMemberRoleManager?scrollTo=premiumSubscriberRole
https://old.discordjs.dev/#/docs/discord.js/main/class/RoleManager?scrollTo=premiumSubscriberRole
These two links are from the docs. Im not sure which one I should use to check if a member has boosted.
My objective is to remove a role from ALL members in a server other than premium subs. Is there a better way to do this other than just looping through all members to check and remove?? (or perhaps just to even remove without checking?)
Currently using discord.js@14.15.2 and node version v20.8.0
https://old.discordjs.dev/#/docs/discord.js/main/class/RoleManager?scrollTo=premiumSubscriberRole
These two links are from the docs. Im not sure which one I should use to check if a member has boosted.
My objective is to remove a role from ALL members in a server other than premium subs. Is there a better way to do this other than just looping through all members to check and remove?? (or perhaps just to even remove without checking?)
Currently using discord.js@14.15.2 and node version v20.8.0
Discord.js is a powerful node.js module that allows you to interact with the Discord API very easily. It takes a much more object-oriented approach than most other JS Discord libraries, making your bot's code significantly tidier and easier to comprehend.