Androz2091 / discord-giveaways

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

Announcement Channels #297

Closed manelcomiche closed 3 years ago

manelcomiche commented 3 years ago

Hey! I have a problem, I just realised, that you can't do raffles in discord news/announcement channels.

I haven't found any way/variable to make it work?

Steps to reproduce:

Additional context

Dragonizedpizza commented 3 years ago

How long is your giveaway?

Dragonizedpizza commented 3 years ago

also, Discord has a limit to cross post editing, I think 10-15 times.

manelcomiche commented 3 years ago

Can you think of any ideas on how to solve it?

Nico105 commented 3 years ago

So at the end of the giveaway, it does not change the embed to the "ended" format? Does it choose the winners?

manelcomiche commented 3 years ago

The draw is completed, as it saves all finished draw data in the database, but the winner's message is not edited.

Nico105 commented 3 years ago

The draw is completed, as it saves all finished draw data in the database, but the winner's message is not edited.

Can you send a screenshot of how the embed and the winMessage look like, cause I can't completely follow

And so in normal text channels everything works fine?

manelcomiche commented 3 years ago

Yeah, in normal channels works fine! But in the announcements...

If the sweepstakes is done in an announcement channel, it sends the first countdown embed, and after a few edits, the embed stops editing.

Dragonizedpizza commented 3 years ago

@LHCLYT did you crosspost (publish) the giveaway?

manelcomiche commented 3 years ago

No... Can it be done?

I think Discord is throwing ratelimit anyway...

Dragonizedpizza commented 3 years ago

Cool, so I tested it on my bot, and it looks like you're cross-posting the message.

manelcomiche commented 3 years ago

Do you know of a possible solution? 🤔

manelcomiche commented 3 years ago

Hey?

Dragonizedpizza commented 3 years ago

There is no solution, other than not publishing the message, which is what you're doing. ...unless you're willing to set your giveaway edit timing to support Discord's limit.

Nico105 commented 3 years ago

image

Dragonizedpizza commented 3 years ago

Meaning, you must set the edit message timeout to 20 minutes.

Nico105 commented 3 years ago

I guess we can't do/say more since we can't do anything against such guidelines.