mirror of
https://github.com/arthur-pbty/gestion.git
synced 2026-06-05 22:01:41 +02:00
add lock , unlock , hide , unhide and version all , add sync commande
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
module.exports = {
|
||||
name: 'unhide',
|
||||
description: "Rend visible un salon spécifique.",
|
||||
category: 'moderation',
|
||||
emote: '👀',
|
||||
utilisation: '+unhide [salon]',
|
||||
async execute(message, args, client) {
|
||||
let channel = message.mentions.channels.first() || message.guild.channels.cache.get(args[0]) || message.channel;
|
||||
|
||||
try {
|
||||
await channel.permissionOverwrites.edit(message.guild.roles.everyone, { "ViewChannel": true });
|
||||
message.reply(`👀 Le salon <#${channel.id}> est maintenant visible.`);
|
||||
} catch (error) {
|
||||
message.reply("Je n'ai pas la permission de gérer les salons.");
|
||||
}
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user