Creating an embed for polling
hey guys, i was wondering where I can find some info on fields for embeds in discord js. I'm trying to recreate the following embed; I cant seem to figure out how to make a field with no title, and also how to make a progress bar? the bar under "yes" updates depending on the number of votes (i know how i would do that, just dont know how to get a progress bar into an embed). Any information is helpful, or if you guys could redirect me to the appropriate documentation that would also help (was not able to find something on the discordjs tutorial myself). Thanks in advance!!
11 Replies
- What's your exact discord.js
npm list discord.js
and node node -v
version?
- Not a discord.js issue? Check out #other-js-ts.
- Consider reading #how-to-get-help to improve your question!
- Explain what exactly your issue is.
- Post the full error stack trace, not just the top part!
- Show your code!
- Issue solved? Press the button!https://cdn.discordapp.com/attachments/824411059443204127/1216627979388715028/image.png?ex=6601141a&is=65ee9f1a&hm=8ac0b91249a4882ae4dcc3629181ce1c211c6c7997be8ff7f109d88505ddf8ab& heres an example of what I'm trying to achieve
Interactions are much more reliable imo. Buttons don't have some of the limitations that reactions do.
discord.js Guide
Imagine a guide... that explores the many possibilities for your discord.js bot.
For a field with no title
Add a string to name
Go inside the string
Hold alt on your keyboard
And type 2800
With numpad and then release alt
It should give you an invisible character
For the progress bar you can have 20 set values with emojis for every 10% vote difference
I can't think of a way to optimise it tho 😭😭
this makes a lot of sense! I'm gonna try to figure out how to do that
yeahhh i think i might have to settle for ◼️
◼️◼️◼️◼️◼️◼️
kinda like that
and then for filling it i would have to do smth like this
🟦 ⬛ ⬛ ⬛ ⬛ ⬛ ⬛
however this feels very bad
yuh ik
i cant think of any other way tho
except
ermmm
replacing 1 ⬛ with a blue one for every 10%
yeah
in a string that looks like this
⬛⬛⬛⬛⬛⬛⬛⬛⬛
yup
i wish there was a better way 😢
but thisll have to do for now
thanks for the help!
np