This commit is contained in:
Louis Mazin 2025-11-30 15:53:18 +01:00
parent 00940db0ce
commit ae6204b93d
2 changed files with 2 additions and 2 deletions

View File

@ -7,7 +7,7 @@ module.exports = {
.setDescription('Redémarre le serveur Palworld'),
async execute(interaction, headers) {
if (!interaction.member.roles.cache.has('1444684935632912394')) {
if (!interaction.member.roles.get('1444684935632912394')) {
await interaction.reply({ content: '❌ Il faut avoir le rôle Rygainland pour pouvoir utiliser cette commande.', ephemeral: true });
return;
}

View File

@ -7,7 +7,7 @@ module.exports = {
.setDescription('Démarre le serveur Palworld s\'il n\'est pas déjà en cours d\'exécution'),
async execute(interaction, headers) {
if (!interaction.member.roles.cache.has('1444684935632912394')) {
if (!interaction.member.roles.get('1444684935632912394')) {
await interaction.reply({ content: '❌ Il faut avoir le rôle Rygainland pour pouvoir utiliser cette commande.', ephemeral: true });
return;
}