Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

233
Vistas
Sending stickers in Discord.js V13

I am trying to forward messages sent to my bot via DM. Everything works, except sending the stickers.

Every time I try to send the a message with a sticker, I just get an Error DiscordAPIError: Cannot use this sticker.

This is part my code:

let userMessage = new discord.MessageEmbed().setDescription(message.content || "᲼")
let messageAttachment =
    message.attachments.size > 0 ? message.attachments.first().url : null
userMessage.setImage(messageAttachment)

let messagePayload = {
    content: null,
    embeds: [],
    stickers: null
}

messagePayload.content = `User <@${message.author.id}> said:`
messagePayload.embeds.push(userMessage)
messagePayload.stickers = message.stickers?.size > 0 ? [message.stickers.first()] : null
client.users.fetch(config.ids.me, false).then((user) => {
    user.send(messagePayload)
})

and the messagePayload looks like this:

{
  content: 'User <@USERID> said:',
  embeds: [
    MessageEmbed {
      type: 'rich',
      title: null,
      description: '᲼',
      url: null,
      color: null,
      timestamp: null,
      fields: [],
      thumbnail: null,
      image: [Object],
      video: null,
      author: null,
      provider: null,
      footer: null
    }
  ],
  stickers: [
    Sticker {
      id: '749054660769218631',
      description: null,
      type: null,
      format: 'LOTTIE',
      name: 'Wave',
      packId: null,
      tags: null,
      available: null,
      guildId: null,
      user: null,
      sortValue: null
    }
  ]
}

In the Docs about sending stickers, it just says it has to be an Array either a Sticker-Object or a Snowflake. Since I am fetching the sticker Object, I assumed that just grabbing it and passing it into my messagePayload would do the job, but somehow the API does not accept it.

discord.Intents.FLAGS.GUILD_EMOJIS_AND_STICKERS, is set, but it does not work with standard stickers aswell (e.g. messagePayload above)

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

As it turns out, you can only send stickers from a guild, inside that same guild.

See Github Issue.

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda