From 52e4eab9d6f4d1d303721895d679cb946cf44fb8 Mon Sep 17 00:00:00 2001 From: Navy Date: Thu, 12 Nov 2020 00:58:55 +0200 Subject: [PATCH] link getter --- structure/extensions/Message.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/structure/extensions/Message.js b/structure/extensions/Message.js index d916683..0195d8e 100644 --- a/structure/extensions/Message.js +++ b/structure/extensions/Message.js @@ -182,6 +182,10 @@ const Message = Structures.extend('Message', (Message) => { return str.trim(); } + get link() { + return `https://discord.com/channels/${this.guild.id}/${this.channel.id}/${this.id}`; + } + } return ExtendedMessage;