diff --git a/Commons/Services/Roles.js b/Commons/Services/Roles.js new file mode 100644 index 0000000..9f6cffb --- /dev/null +++ b/Commons/Services/Roles.js @@ -0,0 +1,13 @@ +const discord = require("discord.js") +/** + assigns a given role to a given user + @param {discord.User} userVal the target user + @param {string} roleName name of role to assign a user + @param {discord.Client} bot the bots instance +*/ +const AddRole = async (userVal, roleName, bot) => { + const guild = bot.guilds.cache.first() + const role = guild.roles.find("name", roleName) + + +} \ No newline at end of file