31 Replies
pass
true
as the second parameterlike this ?
thats not valid syntax
then how do i do it
.
let { size } = await interaction.channel.bulkDelete(amount.true)?
seems like you're lacking javascript fundamentals
JavaScript is alien to me
i was just told it is good for coding a discord bot
its extremely basic, and it works in the same way you'd pass a different argument to a function in math
you separate them with a comma
let { size } = await interaction.channel.bulkDelete(amount, filterOld: true)?
minus filterOld:
let { size } = await interaction.channel.bulkDelete(amount, true)?
now ?
here
why did you put a ] after
true
this is what i put
oh
dont look at soucebin
i wasnt, i was looking at this
typo
you are using
size
in the catch block, which is not defined
you only defined size
in the try blockk
Error
the error is pretty clear
to send embeds you just use
reply({ embeds: [embed] })
content is a string
Error sent to channel
you still have other places doing the same thhing
but i want them to reply ephemeraly
add
ephemeral: true
to the optionsYou're sending an embed as the content, you don't need to, you send embeds as the embeds option
interaction.reply({ embeds: [failedEmbed], ephemeral:true})?
yes
k
when i run the command it deletes ALL messages that it can even if i say to delete 2, it will delete 7
when i console.log(amount)
it returns with null
You set the option name as
number
but you're trying to get the int from amount
which doesn't existthanks so much for the help