Discord rich embed buttonsReaction pagination button forward and back pythonPeak detection in a 2D arrayWin32 Api tooltip from mouse positionAttributeError: module 'discord' has no attribute 'Embed'How to fix my Discord bots command, !setgameDiscord bot send embed message to another channelDiscord.py - AttributeError: module 'discord' has no attribute 'Embed'Only show something in a discord embed if it equals 1setting 2 values for a field in a discord embedPreviously working discord bots stopped working after pip updateDiscord Bot Embed Custom Emoji
What is the term for a person whose job is to place products on shelves in stores?
What is the best way to deal with NPC-NPC combat?
Why do real positive eigenvalues result in an unstable system? What about eigenvalues between 0 and 1? or 1?
Is there metaphorical meaning of "aus der Haft entlassen"?
How much cash can I safely carry into the USA and avoid civil forfeiture?
Do I need to watch Ant-Man and the Wasp and Captain Marvel before watching Avengers: Endgame?
As an international instructor, should I openly talk about my accent?
Does the damage from the Absorb Elements spell apply to your next attack, or to your first attack on your next turn?
"My boss was furious with me and I have been fired" vs. "My boss was furious with me and I was fired"
How to keep bees out of canned beverages?
How to not starve gigantic beasts
Can a level 2 Warlock take one level in rogue, then continue advancing as a warlock?
What is purpose of DB Browser(dbbrowser.aspx) under admin tool?
How can I practically buy stocks?
Could moose/elk survive in the Amazon forest?
Can a stored procedure reference the database in which it is stored?
Combinatorics problem, right solution?
Which big number is bigger?
"Whatever a Russian does, they end up making the Kalashnikov gun"? Are there any similar proverbs in English?
Restricting the options of a lookup field, based on the value of another lookup field?
Island of Knights, Knaves and Spies
How long after the last departure shall the airport stay open for an emergency return?
Crossed out red box fitting tightly around image
I preordered a game on my Xbox while on the home screen of my friend's account. Which of us owns the game?
Discord rich embed buttons
Reaction pagination button forward and back pythonPeak detection in a 2D arrayWin32 Api tooltip from mouse positionAttributeError: module 'discord' has no attribute 'Embed'How to fix my Discord bots command, !setgameDiscord bot send embed message to another channelDiscord.py - AttributeError: module 'discord' has no attribute 'Embed'Only show something in a discord embed if it equals 1setting 2 values for a field in a discord embedPreviously working discord bots stopped working after pip updateDiscord Bot Embed Custom Emoji
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;
I made a few discord.py bots, but I came across one which was surprising. It's called IdleRPG and uses rich embed messages with buttons. Here's a pic (note the buttons at the bottom of the menu):
I've tried contacting the developer and been searching the net but can't seem to find how they did it. Does anyone know of any resources on how to create them? Please provide links.
python discord.py
add a comment |
I made a few discord.py bots, but I came across one which was surprising. It's called IdleRPG and uses rich embed messages with buttons. Here's a pic (note the buttons at the bottom of the menu):
I've tried contacting the developer and been searching the net but can't seem to find how they did it. Does anyone know of any resources on how to create them? Please provide links.
python discord.py
1
Those buttons bellow are discord reactions... You can check them out in the discord.py documentary
– Sujit
Mar 9 at 7:51
Can I add the reaction within the embed itself and not just beneath it like in the picture? I wish to use it like a button for my commands.
– Legion
Mar 9 at 10:08
Here's an example of a simple pagination system using discord reactions: stackoverflow.com/questions/51796005/…
– Patrick Haugh
Mar 9 at 12:08
I don't think adding reactions inside an embed is possible...
– Sujit
Mar 9 at 14:32
add a comment |
I made a few discord.py bots, but I came across one which was surprising. It's called IdleRPG and uses rich embed messages with buttons. Here's a pic (note the buttons at the bottom of the menu):
I've tried contacting the developer and been searching the net but can't seem to find how they did it. Does anyone know of any resources on how to create them? Please provide links.
python discord.py
I made a few discord.py bots, but I came across one which was surprising. It's called IdleRPG and uses rich embed messages with buttons. Here's a pic (note the buttons at the bottom of the menu):
I've tried contacting the developer and been searching the net but can't seem to find how they did it. Does anyone know of any resources on how to create them? Please provide links.
python discord.py
python discord.py
asked Mar 9 at 7:45
LegionLegion
929
929
1
Those buttons bellow are discord reactions... You can check them out in the discord.py documentary
– Sujit
Mar 9 at 7:51
Can I add the reaction within the embed itself and not just beneath it like in the picture? I wish to use it like a button for my commands.
– Legion
Mar 9 at 10:08
Here's an example of a simple pagination system using discord reactions: stackoverflow.com/questions/51796005/…
– Patrick Haugh
Mar 9 at 12:08
I don't think adding reactions inside an embed is possible...
– Sujit
Mar 9 at 14:32
add a comment |
1
Those buttons bellow are discord reactions... You can check them out in the discord.py documentary
– Sujit
Mar 9 at 7:51
Can I add the reaction within the embed itself and not just beneath it like in the picture? I wish to use it like a button for my commands.
– Legion
Mar 9 at 10:08
Here's an example of a simple pagination system using discord reactions: stackoverflow.com/questions/51796005/…
– Patrick Haugh
Mar 9 at 12:08
I don't think adding reactions inside an embed is possible...
– Sujit
Mar 9 at 14:32
1
1
Those buttons bellow are discord reactions... You can check them out in the discord.py documentary
– Sujit
Mar 9 at 7:51
Those buttons bellow are discord reactions... You can check them out in the discord.py documentary
– Sujit
Mar 9 at 7:51
Can I add the reaction within the embed itself and not just beneath it like in the picture? I wish to use it like a button for my commands.
– Legion
Mar 9 at 10:08
Can I add the reaction within the embed itself and not just beneath it like in the picture? I wish to use it like a button for my commands.
– Legion
Mar 9 at 10:08
Here's an example of a simple pagination system using discord reactions: stackoverflow.com/questions/51796005/…
– Patrick Haugh
Mar 9 at 12:08
Here's an example of a simple pagination system using discord reactions: stackoverflow.com/questions/51796005/…
– Patrick Haugh
Mar 9 at 12:08
I don't think adding reactions inside an embed is possible...
– Sujit
Mar 9 at 14:32
I don't think adding reactions inside an embed is possible...
– Sujit
Mar 9 at 14:32
add a comment |
1 Answer
1
active
oldest
votes
Here you go... I was able to create a command that edits the embed on reaction clicks:
Program:
import discord
from discord.ext import commands
TOKEN=""
client=commands.Bot(command_prefix=".")
@client.command()
async def embedpages():
page1=discord.Embed(
title='Page 1/3',
description='Description',
colour=discord.Colour.orange()
)
page2=discord.Embed(
title='Page 2/3',
description='Description',
colour=discord.Colour.orange()
)
page3=discord.Embed(
title='Page 3/3',
description='Description',
colour=discord.Colour.orange()
)
pages=[page1,page2,page3]
message=await client.say(embed=page1)
await client.add_reaction(message,'u23ee')
await client.add_reaction(message,'u25c0')
await client.add_reaction(message,'u25b6')
await client.add_reaction(message,'u23ed')
i=0
emoji=''
while True:
if emoji=='u23ee':
i=0
await client.edit_message(message,embed=pages[i])
if emoji=='u25c0':
if i>0:
i-=1
await client.edit_message(message,embed=pages[i])
if emoji=='u25b6':
if i<2:
i+=1
await client.edit_message(message,embed=pages[i])
if emoji=='u23ed':
i=2
await client.edit_message(message,embed=pages[i])
res=await client.wait_for_reaction(message=message,timeout=30)
if res==None:
break
if str(res[1])!='<Bots name goes here>': #Example: 'MyBot#1111'
emoji=str(res[0].emoji)
await client.remove_reaction(message,res[0].emoji,res[1])
await client.clear_reactions(message)
client.run(TOKEN)
Screenshot:
The strings similar to 'u23ee' are unicodes for their respective emojis.
For accepting a page number you'll have to create an if statement for that emoji and apply wait_for_message
. Then you'll have to check whether the page number is valid and change the value of i
accordingly.
I hope you get the idea.
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55075157%2fdiscord-rich-embed-buttons%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Here you go... I was able to create a command that edits the embed on reaction clicks:
Program:
import discord
from discord.ext import commands
TOKEN=""
client=commands.Bot(command_prefix=".")
@client.command()
async def embedpages():
page1=discord.Embed(
title='Page 1/3',
description='Description',
colour=discord.Colour.orange()
)
page2=discord.Embed(
title='Page 2/3',
description='Description',
colour=discord.Colour.orange()
)
page3=discord.Embed(
title='Page 3/3',
description='Description',
colour=discord.Colour.orange()
)
pages=[page1,page2,page3]
message=await client.say(embed=page1)
await client.add_reaction(message,'u23ee')
await client.add_reaction(message,'u25c0')
await client.add_reaction(message,'u25b6')
await client.add_reaction(message,'u23ed')
i=0
emoji=''
while True:
if emoji=='u23ee':
i=0
await client.edit_message(message,embed=pages[i])
if emoji=='u25c0':
if i>0:
i-=1
await client.edit_message(message,embed=pages[i])
if emoji=='u25b6':
if i<2:
i+=1
await client.edit_message(message,embed=pages[i])
if emoji=='u23ed':
i=2
await client.edit_message(message,embed=pages[i])
res=await client.wait_for_reaction(message=message,timeout=30)
if res==None:
break
if str(res[1])!='<Bots name goes here>': #Example: 'MyBot#1111'
emoji=str(res[0].emoji)
await client.remove_reaction(message,res[0].emoji,res[1])
await client.clear_reactions(message)
client.run(TOKEN)
Screenshot:
The strings similar to 'u23ee' are unicodes for their respective emojis.
For accepting a page number you'll have to create an if statement for that emoji and apply wait_for_message
. Then you'll have to check whether the page number is valid and change the value of i
accordingly.
I hope you get the idea.
add a comment |
Here you go... I was able to create a command that edits the embed on reaction clicks:
Program:
import discord
from discord.ext import commands
TOKEN=""
client=commands.Bot(command_prefix=".")
@client.command()
async def embedpages():
page1=discord.Embed(
title='Page 1/3',
description='Description',
colour=discord.Colour.orange()
)
page2=discord.Embed(
title='Page 2/3',
description='Description',
colour=discord.Colour.orange()
)
page3=discord.Embed(
title='Page 3/3',
description='Description',
colour=discord.Colour.orange()
)
pages=[page1,page2,page3]
message=await client.say(embed=page1)
await client.add_reaction(message,'u23ee')
await client.add_reaction(message,'u25c0')
await client.add_reaction(message,'u25b6')
await client.add_reaction(message,'u23ed')
i=0
emoji=''
while True:
if emoji=='u23ee':
i=0
await client.edit_message(message,embed=pages[i])
if emoji=='u25c0':
if i>0:
i-=1
await client.edit_message(message,embed=pages[i])
if emoji=='u25b6':
if i<2:
i+=1
await client.edit_message(message,embed=pages[i])
if emoji=='u23ed':
i=2
await client.edit_message(message,embed=pages[i])
res=await client.wait_for_reaction(message=message,timeout=30)
if res==None:
break
if str(res[1])!='<Bots name goes here>': #Example: 'MyBot#1111'
emoji=str(res[0].emoji)
await client.remove_reaction(message,res[0].emoji,res[1])
await client.clear_reactions(message)
client.run(TOKEN)
Screenshot:
The strings similar to 'u23ee' are unicodes for their respective emojis.
For accepting a page number you'll have to create an if statement for that emoji and apply wait_for_message
. Then you'll have to check whether the page number is valid and change the value of i
accordingly.
I hope you get the idea.
add a comment |
Here you go... I was able to create a command that edits the embed on reaction clicks:
Program:
import discord
from discord.ext import commands
TOKEN=""
client=commands.Bot(command_prefix=".")
@client.command()
async def embedpages():
page1=discord.Embed(
title='Page 1/3',
description='Description',
colour=discord.Colour.orange()
)
page2=discord.Embed(
title='Page 2/3',
description='Description',
colour=discord.Colour.orange()
)
page3=discord.Embed(
title='Page 3/3',
description='Description',
colour=discord.Colour.orange()
)
pages=[page1,page2,page3]
message=await client.say(embed=page1)
await client.add_reaction(message,'u23ee')
await client.add_reaction(message,'u25c0')
await client.add_reaction(message,'u25b6')
await client.add_reaction(message,'u23ed')
i=0
emoji=''
while True:
if emoji=='u23ee':
i=0
await client.edit_message(message,embed=pages[i])
if emoji=='u25c0':
if i>0:
i-=1
await client.edit_message(message,embed=pages[i])
if emoji=='u25b6':
if i<2:
i+=1
await client.edit_message(message,embed=pages[i])
if emoji=='u23ed':
i=2
await client.edit_message(message,embed=pages[i])
res=await client.wait_for_reaction(message=message,timeout=30)
if res==None:
break
if str(res[1])!='<Bots name goes here>': #Example: 'MyBot#1111'
emoji=str(res[0].emoji)
await client.remove_reaction(message,res[0].emoji,res[1])
await client.clear_reactions(message)
client.run(TOKEN)
Screenshot:
The strings similar to 'u23ee' are unicodes for their respective emojis.
For accepting a page number you'll have to create an if statement for that emoji and apply wait_for_message
. Then you'll have to check whether the page number is valid and change the value of i
accordingly.
I hope you get the idea.
Here you go... I was able to create a command that edits the embed on reaction clicks:
Program:
import discord
from discord.ext import commands
TOKEN=""
client=commands.Bot(command_prefix=".")
@client.command()
async def embedpages():
page1=discord.Embed(
title='Page 1/3',
description='Description',
colour=discord.Colour.orange()
)
page2=discord.Embed(
title='Page 2/3',
description='Description',
colour=discord.Colour.orange()
)
page3=discord.Embed(
title='Page 3/3',
description='Description',
colour=discord.Colour.orange()
)
pages=[page1,page2,page3]
message=await client.say(embed=page1)
await client.add_reaction(message,'u23ee')
await client.add_reaction(message,'u25c0')
await client.add_reaction(message,'u25b6')
await client.add_reaction(message,'u23ed')
i=0
emoji=''
while True:
if emoji=='u23ee':
i=0
await client.edit_message(message,embed=pages[i])
if emoji=='u25c0':
if i>0:
i-=1
await client.edit_message(message,embed=pages[i])
if emoji=='u25b6':
if i<2:
i+=1
await client.edit_message(message,embed=pages[i])
if emoji=='u23ed':
i=2
await client.edit_message(message,embed=pages[i])
res=await client.wait_for_reaction(message=message,timeout=30)
if res==None:
break
if str(res[1])!='<Bots name goes here>': #Example: 'MyBot#1111'
emoji=str(res[0].emoji)
await client.remove_reaction(message,res[0].emoji,res[1])
await client.clear_reactions(message)
client.run(TOKEN)
Screenshot:
The strings similar to 'u23ee' are unicodes for their respective emojis.
For accepting a page number you'll have to create an if statement for that emoji and apply wait_for_message
. Then you'll have to check whether the page number is valid and change the value of i
accordingly.
I hope you get the idea.
edited Mar 9 at 16:40
answered Mar 9 at 15:23
SujitSujit
401110
401110
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55075157%2fdiscord-rich-embed-buttons%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
Those buttons bellow are discord reactions... You can check them out in the discord.py documentary
– Sujit
Mar 9 at 7:51
Can I add the reaction within the embed itself and not just beneath it like in the picture? I wish to use it like a button for my commands.
– Legion
Mar 9 at 10:08
Here's an example of a simple pagination system using discord reactions: stackoverflow.com/questions/51796005/…
– Patrick Haugh
Mar 9 at 12:08
I don't think adding reactions inside an embed is possible...
– Sujit
Mar 9 at 14:32