Skip to content
← Back to Community
discord.py - Buttons
Profile icon
lolguineapig

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:
image

I want them to look like this:
image

(If your wondering how I made that photo, I photoshopped it with google slides)

Can anyone help me? Thanks!

Voters
Profile icon
NootwinNootwin
Profile icon
SoulZGamer
Profile icon
akxyzbd1982
Profile icon
maxina
Profile icon
erger561
Profile icon
lolguineapig
Comments
hotnewtop
Profile icon
beget

how do i even MAKE buttons? lol

Profile icon
erger561

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

Profile icon
lolguineapig

@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.

Profile icon
ch1ck3n

I photoshopped it with google slides

how do you photoshop with google slides lmao
you use photoshop to photoshop stuff

Profile icon
lolguineapig

@ch1ck3n i just take screen shots of stuff and place it on another image

Profile icon
lolguineapig

@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.

Profile icon
SixBeeps

@ch1ck3n Photoshop has become the band-aid of image manipulation. Yes, they should be saying "I edited X to be Y" instead of "I photoshopped X to be Y" instead, but nobody cares anymore because the message is still completely understood.

Profile icon
aShortKid

Isn't it just "inline=True"??

Profile icon
aShortKid

@aShortKid after the line of code for the button??

Profile icon
yousefdarwish06

hey i got question, im trying to add buttons to my discord bot but i cant seem to find the right module

Profile icon
lolguineapig

Can anyone still help me?

Profile icon
erger561

I don't know any more, sorry :(

Profile icon
erger561

:)

Profile icon
erger561

if that does not work, I don't know what to do.

Profile icon
erger561

I think you do need to make your embed bigger like you said.

Profile icon
lolguineapig

@erger561 Ok thanks i will see if that works :)

Profile icon
lolguineapig

@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")])
Profile icon
ZATANGAMING

you need to def button above as well as their interaction process

Profile icon
erger561

make your screen fullscreen, that may help.

Profile icon
lolguineapig

@erger561 this is my full embed:
image

Profile icon
lolguineapig

@erger561 do i just need to make my embed bigger, or is it something else