Closed Tomato6966 closed 3 years ago
https://github.com/Androz2091/discord-giveaways#bonus-entries => 2nd code block (you have to use that "format") and read the 2nd note => extraData
yes but if i stop the bot the variable is not available anymore
your example is not in the new Function()
format, so yeah that's why it won't work... as said
uhm let me try
Falls es dir leichter damit geht, kann ich auch deutsch btw
Dankeschön, das hat funktioniert und ist, genau was ich gesucht habe.
Wusste nicht, dass es so etwas gibt!
Hab auch gleich reinstudiert, warum und wie das funktioniert! thx
Latest Version
If i do something like: bonus: (member) => member.roles.cache.some((r) => r.id ===
${bonusentriesdata.mentions.roles.first().id}
) ? 1 : nullit doesnt work cause bonusentriesdata is undefined.
Ik the problem is that it doesnt remember the variable. so those function data should be stored in some sort of db somehow. Maybe this should be implemented in the package?