I have the following snippet:
await member
.send({
content: `You have been kicked from: **${interaction.guild.name}**\nReason: **${reason}**`,
})
.catch(console.log("User has blocked DMs."));
and it runs both the send and the catch below it. The following snippet:
await member
.send({
content: `You have been kicked from: **${interaction.guild.name}**\nReason: **${reason}**`,
})
.catch(() => console.log("User has blocked DMs."));
is only slightly different and instead works.
I am curious as to why that is.