Skip to content

Commit

Permalink
Update function.js
Browse files Browse the repository at this point in the history
  • Loading branch information
borangokden authored Apr 15, 2022
1 parent 57f3aea commit 646f0f1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/helpers/function.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ module.exports = async client => {
};

TextChannel.prototype.error = async function (message, text) {
const embed = new MessageEmbed()
const embed = new MessageEmbed()
.setColor(message.member.displayHexColor)
.setAuthor({name: message.member.displayName, iconURL: author.avatarURL({ dynamic: true, size: 2048 })})
.setFooter({text: (config.bot.BotFooter) , iconURL: ownerr.avatarURL({ dynamic: true, size: 2048 })})
.setAuthor({name: message.member.displayName})
.setFooter({text: (config.bot.BotFooter)})
this.send({ embeds: [embed.setDescription(text)] }).then(x => { if (x.deletable) setTimeout(() => { x.delete(); }, 10000) });
};

Expand Down

0 comments on commit 646f0f1

Please sign in to comment.