fix chest footer

master
Kit Kasune 3 years ago
parent bc8bf518d1
commit 12d74162d7
  1. 4
      util/lxp/spawnchest.js

@ -67,12 +67,12 @@ module.exports = async (client, member, channel, prefix) => {
let chestEmbed = new Discord.MessageEmbed()
.setTitle(`${client.utils.an(rarity.name, true)} Chest has spawned!`)
.setDescription(`It has **${amount} Monners<:monners:926736756047495218>**`)
.setFooter({text: `Type \`${prefix}claim\` to claim it!`})
.setFooter({text: `Type ${prefix}claim to claim it!`})
.setColor(rarity.color) //create the chest message
if (spawnChannel === channel) {
return channel.send({embeds: [chestEmbed]})
.then(m => {client.misc.cache.chests.waiting.set(m.channel.id, {amount: amount, rarity: rarity, message: m});})
.then(m => {client.misc.cache.chests.waiting.set(m.channel.id, {amount: amount, rarity: rarity, message: m});}) //place the chest in waiting to make it claimable
.catch(() => {});
}
else {

Loading…
Cancel
Save