(fix) Chants were referring to spells
This commit is contained in:
@ -26,7 +26,7 @@ module.exports = {
|
||||
if (!isNaN(args[0])) {
|
||||
return message.reply(findMessage('WRONG_ARGUMENTS'));
|
||||
}
|
||||
const Chant = getSpell({ Character: docs[0].character, chant_name: args[0] });
|
||||
const Chant = getChant({ Character: docs[0].character, chant_name: args[0] });
|
||||
if (!Chant) {
|
||||
return message.reply(findMessage('CHANT_UNKNOWN'));
|
||||
}
|
||||
|
@ -21,14 +21,14 @@ module.exports = {
|
||||
if (args.length === 0) {
|
||||
return message.reply(ReplyChantList(createChantList(Character))); //?+
|
||||
}
|
||||
const Spell = getChant({
|
||||
const Chant = getChant({
|
||||
Character: Character,
|
||||
chant_name: args[0],
|
||||
});
|
||||
if (!Spell) {
|
||||
if (!Chant) {
|
||||
return message.reply(findMessage('SPELL_UNKNOWN'));
|
||||
}
|
||||
return message.reply(ReplyChant(Spell));
|
||||
return message.reply(ReplyChant(Chant));
|
||||
});
|
||||
},
|
||||
};
|
||||
|
Reference in New Issue
Block a user