Androz2091 / discord-giveaways

🎉 Complete framework to facilitate the creation of giveaways using discord.js
https://discord-giveaways.js.org
MIT License
335 stars 127 forks source link

Giveaway embed #432

Closed wynwxst closed 2 years ago

wynwxst commented 2 years ago

Describe the bug
The embed for the giveaway doesn't appear A clear and concise description of what the bug is.

Error

A screenshot or the text block of the error if there is one.

(Use `node --trace-deprecation ...` to show where the warning was created)
(node:53) DeprecationWarning: Passing strings for MessageEmbed#setFooter is deprecated. Pass a sole object instead.

To Reproduce

Steps to reproduce the behavior: start a gaw normally Expected behavior

A clear and concise description of what you expected to happen. I expected an embed to appear

Screenshots

If applicable, add screenshots to help explain your problem. image

Additional context

Add any other context about the problem here. code:

       client.giveawaysManager.start(message.channel, {
      time: ms(time),
      winnerCount: winners,
      prize: prize,
      hostedBy: message.author,
      extraData: {
       role: role == null ? "null" : role.id,
      },
      messages: {
        giveaway: `${emojis.categories.giveaways} **Giveaway** ${emojis.categories.giveaways}`,
        giveawayEnded: "🎊 **Giveaway Ended!** 🎊",
        timeRemaining: "Time left: **{duration}**!",
        inviteToParticipate: 'React with "🎉" to participate!',
        winMessage: "🎊 Congrats, {winners} for winning **{prize}**!",
        embedFooter: `${client.user.tag}`,
        noWinner: "Nobody won because of the invalid participations!",
        hostedBy: `Hosted by: {user} \n ${
          role == null ? "Must join in time" : "Required Role: " + role.toString()
        }`,
        winners: "winner(s)",
        endedAt: "Ended at",
        units: {
          seconds: "seconds",
          minutes: "minutes",
          hours: "hours",
          days: "days",
        },
      },
imranbarbhuiya commented 2 years ago

Update to latest version of discord-giveaways to fix it. It's not a bug but using string in footer name is now deprecated.