mirror of
https://github.com/arthur-pbty/gestion.git
synced 2026-06-24 02:14:41 +02:00
correction confession
This commit is contained in:
@@ -4,6 +4,9 @@ const { ActionRowBuilder, ButtonStyle, EmbedBuilder, ButtonBuilder} = require('d
|
||||
module.exports = {
|
||||
name: 'confession',
|
||||
description: 'Configure les paramètres pour le salon de confession.',
|
||||
category: 'gestion',
|
||||
emote: '🙏',
|
||||
usage: 'confession [channel|send] [channelID|#channel]',
|
||||
async execute(message, args) {
|
||||
const guildId = message.guild.id;
|
||||
if (!args.length) return message.reply('Veuillez spécifier une sous-commande: channel ou send.');
|
||||
@@ -37,7 +40,6 @@ async function setConfessionChannel(guildId, message, channelInput) {
|
||||
channelId = channelInput;
|
||||
}
|
||||
|
||||
// Vérifier si le salon existe
|
||||
const channel = message.guild.channels.cache.get(channelId);
|
||||
if (!channel) {
|
||||
return message.reply('Le salon spécifié n\'existe pas ou l\'ID est incorrect.');
|
||||
|
||||
Reference in New Issue
Block a user