From 2521add58340ceb0f1b3bce829ca55c6bae3e62d Mon Sep 17 00:00:00 2001 From: Lamp Date: Thu, 13 Dec 2018 06:22:28 +0000 Subject: [PATCH] fix pinboard url bug --- src/misc.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/misc.js b/src/misc.js index 20d5442..00b61cb 100755 --- a/src/misc.js +++ b/src/misc.js @@ -1,5 +1,4 @@ - // join/leave (async function(){ var webhook = new Discord.WebhookClient(config.webhooks.welcome[0], config.webhooks.welcome[1]); @@ -99,7 +98,7 @@ dClient.on("local_emojiDelete", async emoji => { if (!(messageReaction.emoji.name == "📌" || messageReaction.emoji.name == "📍")) return; if (!(user.id == messageReaction.message.author.id || messageReaction.message.guild.members.get(user.id).hasPermission('MANAGE_MESSAGES'))) return;// if message is theirs or user is mod var message = messageReaction.message; - await webhook.send(`https://discordapp.com/channels/${message.guild.id}${message.channel.id}/${message.id}`, {embeds:[{ + await webhook.send(`https://discordapp.com/channels/${message.guild.id}/${message.channel.id}/${message.id}`, {embeds:[{ color: (message.member && message.member.displayColor) || undefined, author: { name: (message.member && message.member.displayName) || message.author.username,