Skip to content

Commit

Permalink
Resolve name conflict in Embed
Browse files Browse the repository at this point in the history
  • Loading branch information
xsduan committed Jan 8, 2018
1 parent efa6c04 commit 6485c17
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions help/help.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const help = [
* @param {User} user User to put as head
* @returns {RichEmbed} Help message
*/
function embed(user) {
function createEmbed(user) {
var helpEmbed = new Discord.RichEmbed()
.setColor(settings.embeds.colors.success)
.setAuthor(user.username, user.avatarURL)
Expand All @@ -57,5 +57,5 @@ function embed(user) {
* @returns {(Promise<(Message|Array<Message>)>)|null} Whatever message needs handling
*/
exports.help = function (channel, user) {
return embed.send(channel, exports.embed(user))
return embed.send(channel, createEmbed(user))
}

0 comments on commit 6485c17

Please sign in to comment.