discord.py - Buttons
I just found out that the new button feature came out, so I used it. It worked but I have one slight problem. I want the buttons to be inline.
Right now my buttons look like this:
I want them to look like this:
(If your wondering how I made that photo, I photoshopped it with google slides)
Can anyone help me? Thanks!
Can you try to help me on my code? It is just python, I Have points in the game but, if you want to change the game I used displayIntro so it wont save the amount of points, it would be a big help if you know how to fix it. Here is the link to the post: https://replit.com/talk/ask/Saving-a-score-to-put-in-displayIntro-in-python/143132
@erger561
I answered your question, just in case you still haven't solved it. I'm not sure that I understood the question properly though.
I photoshopped it with google slides
how do you photoshop with google slides lmao
you use photoshop to photoshop stuff
@ch1ck3n i just take screen shots of stuff and place it on another image
@ch1ck3n to photoshop it to be inline, i took a snip (screenshot) of the next button and dragged it next to the previous button. when photoshopping, you have to be careful with color, though.
Isn't it just "inline=True"??
@aShortKid after the line of code for the button??
hey i got question, im trying to add buttons to my discord bot but i cant seem to find the right module
Can anyone still help me?
I don't know any more, sorry :(
:)
if that does not work, I don't know what to do.
I think you do need to make your embed bigger like you said.
@erger561 Ok thanks i will see if that works :)
@erger561 I tried adding \t but it did not work.
This is my code:
shopEmbed = discord.Embed(title='PokéP Shop', description='Coming Soon! Check back later.\t\t', color=0xffffff) shopEmbed.set_footer(text='Page 1 of 1') shopMSG = await ctx.send(embed=shopEmbed, components=[Button(style=ButtonStyle.red, label="Previous"), Button(style=ButtonStyle.green, label="Next")])
you need to def button above as well as their interaction process
make your screen fullscreen, that may help.
@erger561 this is my full embed:
@erger561 do i just need to make my embed bigger, or is it something else
how do i even MAKE buttons? lol