Skip to content

Commit b321f63

Browse files
authored
📝 Fix bug's sur un émoji et ajout (#7)
Fix d'un bug sur un émoji ; également ajout pour pouvoir mettre des aliases sans problèmes et optimisation !
1 parent 6e917fc commit b321f63

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

commands/utilities/help.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ module.exports = {
5454
return;
5555
}
5656

57-
const name = args[0].toLowerCase(), command = commands.get(name) || commands.find(c => c.aliases && c.aliases.includes(name));
57+
const name = args[0].toLowerCase(), command = (commands.get(message.client.aliases.get(name) ? message.client.aliases.get(name) : name));
5858

5959
if (!command) return message.errorMessage(`Je n'ai aucunne commande ou aliases de nom : \`${name}\``);
6060

@@ -67,7 +67,7 @@ module.exports = {
6767
.setColor(message.client.color)
6868
.addField("> Usage", `${prefix}${command.name} ${command.usage || ""}`,true)
6969
.addField("> Exemple", `${command.exemple ? `${prefix}${command.name} ${command.exemple}` : "Aucun exemple"}`,true)
70-
.addField("Statut", "Satut de la commande : <:IconSwitchIconOn:825378657287274529>\nEn mp :" + `${command.guildOnly ? "<:icon_SwitchIconOff:825378603252056116>" :"<:IconSwitchIconOn:825378657287274529>"}`, true)
70+
.addField("Statut", "Satut de la commande : <:IconSwitchIconOn:825378657287274529>\nEn mp : " + `${command.guildOnly ? "<:icon_SwitchIconOff:825378603252056116>" :"<:IconSwitchIconOn:825378657287274529>"}`, true)
7171
.addField("> Aliases", `${command.aliases.join(', ') || "Aucune aliases"}`)
7272
.addField('> Permissions Requises', `${command.permissions || "Vous n'avez pas besoin de permission :)"}`)
7373
.addField('> Permissions du bot', `${command.botpermissions ? `${command.botpermissions}`: "Le bot n'a pas besoin de permissions :)"}`);

0 commit comments

Comments
 (0)