© 2026 Hedgehog Software, LLC
messageCreate
listeners/messageCreate.ts
import { ApplyOptions } from '@sapphire/decorators'; import { Listener } from '@sapphire/framework'; import { Events, Message } from 'discord.js'; @ApplyOptions<Listener.Options>({ event: Events.MessageCreate, }) export class MessageCreateListener extends Listener { public async run(message: Message) { console.log('test'); // ... } }
intents: [ IntentBits.Guilds, IntentBits.GuildMembers, IntentBits.GuildMessages, IntentBits.DirectMessages, IntentBits.MessageContent, ],