Interaction reply option type for Stickers?

I can send stickers in messages no problem however when I try to reply via interactions it will not send the sticker.
const sticker = client.guilds.cache.get('guild_id').stickers.cache.get('sticker_id')

await interaction.reply({
content: str,
ephemeral: false,
stickers: [sticker]
})
const sticker = client.guilds.cache.get('guild_id').stickers.cache.get('sticker_id')

await interaction.reply({
content: str,
ephemeral: false,
stickers: [sticker]
})
https://old.discordjs.dev/#/docs/discord.js/14.14.1/typedef/BaseMessageOptions
I am not sure where a guild's sticker would fit in with an interaction reply 😦
2 Replies
d.js toolkit
d.js toolkit•13mo 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!
duck
duck•13mo ago
there's no documented option for sending stickers because you can't send stickers in an interaction reply I'm not discord, but I imagine this has something to do with the fact that interactions use webhooks, and webhooks are unable to send stickers as well

Did you find this page helpful?