Vandyck
Vandyck
DIAdiscord.js - Imagine an app
Created by Vandyck on 3/2/2025 in #djs-questions
Message Object sending ephemeral message
In Typescript, I am trying to use Message Object to send ephemeral message but it seems like that is not possible Is there a way that I can make the messagecreate function able to execute with the Message object in sending ephemeral messages
export default new Event({
name: Events.MessageCreate,
async execute(message: Message): Promise<void> {
// Not working
await message.channel.send({
content: `👤 <@${message.author.id}>\n`,
ephemeral: true,
});
}
});
export default new Event({
name: Events.MessageCreate,
async execute(message: Message): Promise<void> {
// Not working
await message.channel.send({
content: `👤 <@${message.author.id}>\n`,
ephemeral: true,
});
}
});
12 replies
DIAdiscord.js - Imagine an app
Created by Vandyck on 2/19/2025 in #djs-questions
Slash command unknown interaction without reload
No description
23 replies