This commit is contained in:
e201098 2022-03-31 16:55:17 +02:00
parent 563369e5ca
commit cf429b3e4f

View File

@ -80,9 +80,10 @@ Client.on("interactionCreate", async interaction => {
} else if (commandName === 'role') {
console.log(interaction)
interaction.user.c
let roleId = interaction.options._hoistedOptions[0].value
await interaction.member.roles.add(interaction.guild.roles.cache.find(r => r.id === roleId))
await interaction.reply({
content: `Ajout du role : <@&${interaction.options._hoistedOptions[0].value}>`,
content: `Ajout du role : <@&${roleId}>`,
fetchReply: true, ephemeral: true
})