In a channel I choose, delete any message without an image or video and DM the author their text back; open a thread on every image named after the author, where anything can be posted
Media Gallery keeps one channel clean for images and videos only.
When someone posts in the gallery channel:
Setup: Choose your gallery channel in the settings. Members need to post attachments — links to images don't count, only uploaded files.
Made by MEE6. Remix it to get a copy of your own and change anything you like.


/**
* Media Gallery — enforces image/video-only posting in a chosen channel.
* Text-only messages are deleted and DM'd back to the author.
* Every image post gets a thread named after the author.
*/
mee6.settings({
gallery_channel: {
type: 'channel',
label: 'Gallery channel (images/videos only)',
required: true,
sample: 'gallery',
},
});
// Only messages in the gallery channel wake the module (none while it is not set)
mee6.on('message', { channels: [mee6.setting('gallery_channel')] }, async (ctx) => {
const hasMedia = ctx.message.attachments.some(
(att) => att.contentType?.startsWith('image/') || att.contentType?.startsWith('video/')
);
if (!hasMedia) {
// Text-only message — delete it and DM the author
await ctx.delete();
const content = ctx.message.content || '(no text)';
const sent = await mee6.dm(
ctx.author.id,
`Your message in the gallery was removed (images/videos only):\n\n${content}`
);
if (!sent) {
mee6.log(`Could not DM ${ctx.author.username} — DMs closed`);
}
} else {
// Has media — create a thread named after the author
const threadName = `${ctx.author.displayName}'s post`;
await ctx.createThread(threadName);
}
});