upgrade wl et owner with best optimison with async fonction

This commit is contained in:
VALOU3336
2024-02-29 22:40:42 +01:00
parent 5f67fa1a1a
commit 7ff8c0237f
12 changed files with 162 additions and 124 deletions
+1 -1
View File
@@ -3,7 +3,7 @@ module.exports = {
description: "Enlève la possibilité de voir un salon spécifique.",
category: 'moderation',
emote: '👁️',
utilisation: '+hide [salon]',
utilisation: 'hide [salon]',
async execute(message, args, client) {
let channel = message.mentions.channels.first() || message.guild.channels.cache.get(args[0]) || message.channel;
+1 -1
View File
@@ -3,7 +3,7 @@ module.exports = {
description: "Enlève la possibilité de voir tous les salons.",
category: 'moderation',
emote: '👁️',
utilisation: '+hideall',
utilisation: 'hideall',
async execute(message, args, client) {
try {
message.guild.channels.cache.forEach(channel => {
+1 -1
View File
@@ -3,7 +3,7 @@ module.exports = {
description: "Bloque la possibilité de parler dans un salon spécifique.",
category: 'moderation',
emote: '🔒',
utilisation: '+lock [salon]',
utilisation: 'lock [salon]',
async execute(message, args, client) {
let channel = message.mentions.channels.first() ||message.guild.channels.cache.get(args[0]) || message.channel;
+1 -1
View File
@@ -5,7 +5,7 @@ module.exports = {
description: "Bloque la possibilité de parler dans tous les salons textuels du serveur.",
category: 'moderation',
emote: '🔒',
utilisation: '+lockall',
utilisation: 'lockall',
async execute(message, args, client) {
try {
+1 -1
View File
@@ -3,7 +3,7 @@ module.exports = {
description: "Rend visible un salon spécifique.",
category: 'moderation',
emote: '👀',
utilisation: '+unhide [salon]',
utilisation: 'unhide [salon]',
async execute(message, args, client) {
let channel = message.mentions.channels.first() || message.guild.channels.cache.get(args[0]) || message.channel;
+1 -1
View File
@@ -3,7 +3,7 @@ module.exports = {
description: "Rend visible tous les salons.",
category: 'moderation',
emote: '👀',
utilisation: '+hundiall',
utilisation: 'hundiall',
async execute(message, args, client) {
try {
message.guild.channels.cache.forEach(channel => {
+1 -1
View File
@@ -3,7 +3,7 @@ module.exports = {
description: "Autorisé la possibilité de parler dans un salon spécifique.",
category: 'moderation',
emote: '🔓',
utilisation: '+unlock [salon]',
utilisation: 'unlock [salon]',
async execute(message, args, client) {
let channel = message.mentions.channels.first() ||message.guild.channels.cache.get(args[0]) || message.channel;
+1 -1
View File
@@ -5,7 +5,7 @@ module.exports = {
description: "Autorisé la possibilité de parler dans tous les salons textuels du serveur.",
category: 'moderation',
emote: '🔓',
utilisation: '+unlockall',
utilisation: 'unlockall',
async execute(message, args, client) {
try {