#Message listener only on certain channels?

1 messages · Page 1 of 1 (latest)

wicked nymph

Hey there! So I have this:

module.exports = {
    name: Events.MessageCreate,
    async execute(message)
    {
        message.fetch()
        .then(console.log)
        .catch(console.error);
    }
};

This apparently listens to every channel the bot has access to. Can I restrict it to just one channel or some channels? I can probably check the channel id within the body of execute(message) but I wonder if there's a method that only listens to certain channels in the first place.