How can i make an add role command

im using slash commands so how can i add a command that adds a specific role to a defined user?
client.on('interactionCreate', (interaction) => {
    if (!interaction.isChatInputCommand()) return;

//commands go here

});


and i use a const commands array to register / commands
Was this page helpful?