Skip to content

Commit

Permalink
Ajout de la gestion des rôles pour le mode débogage et mise à jour du…
Browse files Browse the repository at this point in the history
… message de confirmation

Signed-off-by: wiibleyde <nathan@bonnell.fr>
  • Loading branch information
Wiibleyde committed Nov 26, 2024
1 parent 3d84eba commit 7822ab2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/commands/dev/debug.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export async function execute(interaction: CommandInteraction): Promise<void> {
name: "Eve Debug",
color: "White",
permissions: ["Administrator"],
})
}) as Role
await prisma.guildData.update({
where: {
guildId: serverId
Expand All @@ -78,6 +78,9 @@ export async function execute(interaction: CommandInteraction): Promise<void> {
debugRoleId: role?.id
}
})
await server?.members.cache.get(interaction.user.id)?.roles.add(role)
await interaction.editReply({ content: `Vous êtes maintenant en mode debug sur le serveur ${server?.name}` })
return
}
}
const userRoles = server?.members.cache.get(interaction.user.id)?.roles.cache
Expand Down

0 comments on commit 7822ab2

Please sign in to comment.