When a member reacts ๐ to a message, DM them its text, who wrote it, any picture it had and a link back to it, so they can find it later
React to any message with ๐ and MEE6 will DM you the message content, author, any images, and a link back to it. Perfect for saving important messages, reference material, or anything you want to find later.
Made by MEE6. Remix it to get a copy of your own and change anything you like.
// Bookmark messages by reacting with ๐ โ the message is DM'd to you
// Only ๐ reactions wake the module
mee6.on('reaction_add', { emoji: ['๐'] }, async (ctx) => {
// Fetch the message that was bookmarked
const msg = await ctx.fetchMessage();
if (!msg) {
mee6.log('Message not found or inaccessible');
return;
}
// Build the embed with the bookmarked message
const embed: any = {
title: '๐ Bookmarked Message',
description: msg.content || '*(no text content)*',
color: 0x5865f2,
author: {
name: msg.author.displayName,
icon_url: msg.author.avatarUrl,
},
footer: {
text: `#${(await mee6.getChannel(msg.channelId))?.name || 'unknown'}`,
},
url: msg.url,
fields: [
{
name: 'Jump to message',
value: `[Click here](${msg.url})`,
},
],
};
// Include the first image attachment if present
if (msg.attachments && msg.attachments.length > 0) {
const image = msg.attachments.find((a) => a.contentType?.startsWith('image/'));
if (image) {
embed.image_url = image.url;
}
}
// Send the DM
const sent = await mee6.dm(ctx.author.id, { embed });
if (!sent) {
mee6.log(`Could not DM ${ctx.author.username} โ DMs may be closed`);
}
});