Skip to content

Adde entriesAmount variable for Giveaway when ended | update discord.js to 14.22.1 | update ready -> clientReady | add prisma example#480

Open
Tomato6966 wants to merge 8 commits intoAndroz2091:developfrom
Tomato6966:patch-2
Open

Adde entriesAmount variable for Giveaway when ended | update discord.js to 14.22.1 | update ready -> clientReady | add prisma example#480
Tomato6966 wants to merge 8 commits intoAndroz2091:developfrom
Tomato6966:patch-2

Conversation

@Tomato6966
Copy link

@Tomato6966 Tomato6966 commented Sep 11, 2022

Changes

Added the variable entriesAmount to a Giveaway
so you can add this in an ending message:

{this.entriesAmount} Entries

image

npm i Androz2091/discord-giveaways#9c44927bd696e9a06e494af9554d27c1718e997b

@Nico105
Copy link
Collaborator

Nico105 commented Sep 11, 2022

For more clarity, I think smth like finalEntrantAmount would go better.
and setting it to null instead of 0 seems more appropriate, no?
also, I guess this should be saved to the db?

@Tomato6966
Copy link
Author

Sry for late respond, it really is useful, as in most giveaway bots, they show the amount of entries after the giveaway ended, this way it's the most easiest to implement, just add the variable {this.entriesAmount} inside your template messages strings

@Tomato6966 Tomato6966 changed the title Adde entriesAmount variable for Giveaway when ended Adde entriesAmount variable for Giveaway when ended | update discord.js to 14.22.1 | update ready -> clientReady | add prisma example Sep 12, 2025
@Tomato6966
Copy link
Author

@Nico105 Any updates?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants