interaction.user.send() not working?

The embed with Success happens and whole thing goes to plan but i.user doesnt get logged??? nor do i get dmed
const member = await i.guild?.members.fetch(i.user)
const hasRole = member?.roles.cache.has(roles.premium)
const embed = await addPost(job, i.user.id, hasRole || false, tempId)
const dmEmbed = new InfoEmbed('Your Post has been sent in for approval', 'You will be notified when your post goes through.');
interaction.user.send({embeds: [dmEmbed]});
console.log(interaction.user)
i.reply({content: 'Success!', ephemeral: true})
return collector.stop()
const member = await i.guild?.members.fetch(i.user)
const hasRole = member?.roles.cache.has(roles.premium)
const embed = await addPost(job, i.user.id, hasRole || false, tempId)
const dmEmbed = new InfoEmbed('Your Post has been sent in for approval', 'You will be notified when your post goes through.');
interaction.user.send({embeds: [dmEmbed]});
console.log(interaction.user)
i.reply({content: 'Success!', ephemeral: true})
return collector.stop()
Heres full code : https://pastebin.com/xy0ZXRa5
Pastebin
import { InfoEmbed } from '../modules/embeds';import { SlashCommand...
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
11 Replies
d.js toolkit
d.js toolkit12mo ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button!
treble/luna
treble/luna12mo ago
and do you get any errors
Ateeb Sohail
Ateeb SohailOP12mo ago
nope
Ateeb Sohail
Ateeb SohailOP12mo ago
nada
No description
treble/luna
treble/luna12mo ago
you're not silently ignoring them anywhere? since if that doesnt get executed it might throw
Ateeb Sohail
Ateeb SohailOP12mo ago
No description
Ateeb Sohail
Ateeb SohailOP12mo ago
Nope and my DMs are open on discord
treble/luna
treble/luna12mo ago
log before you send the message
Ateeb Sohail
Ateeb SohailOP12mo ago
one sec nothing
treble/luna
treble/luna12mo ago
seems like your infoembed is holding it up then
Ateeb Sohail
Ateeb SohailOP12mo ago
nope just deleted it
Want results from more Discord servers?
Add your server