mirror of
https://github.com/arthur-pbty/gestion.git
synced 2026-06-17 08:07:44 +02:00
upgrade wl et owner with best optimison with async fonction
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
@@ -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 => {
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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 {
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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 => {
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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 {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user