config
This commit is contained in:
parent
563369e5ca
commit
cf429b3e4f
5
index.js
5
index.js
@ -80,9 +80,10 @@ Client.on("interactionCreate", async interaction => {
|
|||||||
|
|
||||||
} else if (commandName === 'role') {
|
} else if (commandName === 'role') {
|
||||||
console.log(interaction)
|
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({
|
await interaction.reply({
|
||||||
content: `Ajout du role : <@&${interaction.options._hoistedOptions[0].value}>`,
|
content: `Ajout du role : <@&${roleId}>`,
|
||||||
fetchReply: true, ephemeral: true
|
fetchReply: true, ephemeral: true
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user