diff --git a/commands/teams admin/tedit.js b/commands/teams admin/tedit.js index e0a716f..bb2d20c 100644 --- a/commands/teams admin/tedit.js +++ b/commands/teams admin/tedit.js @@ -11,7 +11,19 @@ module.exports = { async execute(message, args, client) { if (args.length > 0) { - const subCommand = args[0].toLowerCase(); + let subCommand = args[0].toLowerCase(); + subCommand = subCommand.replice('n', 'name') + subCommand = subCommand.replice('nom', 'name') + subCommand = subCommand.replice('noms', 'name') + subCommand = subCommand.replice('banniere', 'banner') + subCommand = subCommand.replice('bannière', 'banner') + subCommand = subCommand.replice('b', 'banner') + subCommand = subCommand.replice('i', 'icon') + subCommand = subCommand.replice('p', 'icon') + subCommand = subCommand.replice('photo', 'icon') + subCommand = subCommand.replice('icone', 'icon') + subCommand = subCommand.replice('d', 'description') + const newValue = args.slice(1).join(' '); if (['name', 'banner', 'icon', 'description'].includes(subCommand)) {