[RESOLVED] repliedUser in MessageMentionOptions not working

hi, not 100% sure if this is me being dumb or not, but it is not pinging me for in-line replies
9 Replies
Kevinnnn
KevinnnnOP3y ago
async execute(
_client: EedoClient,
interaction: ChatInputCommandInteraction
): Promise<any> {
let cat: string = await fetch("", {
headers: {
Accept: "application/json",
},
})
.then((res) => res.json())
.then((body: any) => body.file);

if (!cat)
return interaction.reply(
"The cats are hiding right now, try this command in a bit."
);

const embed = new EmbedBuilder().setImage(cat);

return interaction.reply({
embeds: [embed],
content: interaction.member?.toString(),
allowedMentions: { repliedUser: true },
});
}
async execute(
_client: EedoClient,
interaction: ChatInputCommandInteraction
): Promise<any> {
let cat: string = await fetch("", {
headers: {
Accept: "application/json",
},
})
.then((res) => res.json())
.then((body: any) => body.file);

if (!cat)
return interaction.reply(
"The cats are hiding right now, try this command in a bit."
);

const embed = new EmbedBuilder().setImage(cat);

return interaction.reply({
embeds: [embed],
content: interaction.member?.toString(),
allowedMentions: { repliedUser: true },
});
}
Kevinnnn
KevinnnnOP3y ago
neither are working tried changing true to false to see if it was somehow screwed up, and I also tried setting it as true in ClientOptions its already defaulted to true, so I don't see where I went wrong
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
Kevinnnn
KevinnnnOP3y ago
Even without me directly enabling/disabling it, it still has no effect with the in-line reply not pinging me. I have it set as true in both ClientOptions and the allowedMentions in the interaction.reply()
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
Kevinnnn
KevinnnnOP3y ago
already tried that, only pings me when I implicitly add my mention in the content of the message ill go ahead and provide what I have so far
Kevinnnn
KevinnnnOP3y ago
what the expected behavior is this:
Kevinnnn
KevinnnnOP3y ago
what the actual behavior is:
Kevinnnn
KevinnnnOP3y ago
and the code chunk:
return interaction.reply({
embeds: [embed],
allowedMentions: {
repliedUser: true,
parse: ["users"],
users: [interaction.member?.user.id!],
},
});
return interaction.reply({
embeds: [embed],
allowedMentions: {
repliedUser: true,
parse: ["users"],
users: [interaction.member?.user.id!],
},
});
aint that dandy i swear they did at some point oh well, thanks for the help
Want results from more Discord servers?
Add your server