All Questions

Tagged with
Filter by
Sorted by
Tagged with
24 votes
7 answers
170k views

How can I send an embed via my Discord bot, w/python?

I've been working on a Discord bot, and I'd like to make things more custom. I've been trying to make the bot send embeds, instead of normal messages. embed = discord.Embed(title="Tile", ...
Norberto A.'s user avatar
4 votes
1 answer
4k views

Use local file as set_thumbnail on embed in Discord.py

I want to post an embed with a thumbnail on it, with a local file on my PC. Whenever I try to run this code, the image is sent outside the embed. embedVar = discord.Embed(title="title", ...
Loboh67's user avatar
  • 53
3 votes
1 answer
10k views

Discord.py - Embed thumbnail param - How to get user avatars for a command

This is the sole line of code which doesn't work: embed.set_thumbnail(user.avatar_url) It says 2 args were given when I amended it, possibly due to some syntactic sugar or some stuff. However in ...
Benyameen Hashmi's user avatar
2 votes
2 answers
40k views

discord.py embed footer with timestamp

So I am trying to make something like this: Here is my current code: time = datetime.datetime.utcnow() embed.set_footer(text = time, icon_url = "https://i.imgur.com/uZIlRnK.png") But it ...
DriftAsimov's user avatar
2 votes
5 answers
13k views

Discord.py: Using Variable As Discord Embed color

so I'm trying to make a command for my discord bot that is an embed builder. I want the user of the command to be able to input a hex value for the color of the embed. Here is what I've tried: value = ...
Dom's user avatar
  • 138
2 votes
3 answers
10k views

Multiple photos in discord.py embed

Okey, I've got two charts images and I want to send them in one embed message: Here's the code I wrote: charts = [ discord.File("/root/discord.py/chart-render/tempchart.png", ...
Thundo's user avatar
  • 173
2 votes
2 answers
60 views

How can I also include normal content in an embedded message?

How do I also include normal content in an embedded message, just like the following image? For instance, this is a normal embedded message. embed = discord.Embed(title="example", ...
Bella's user avatar
  • 112
2 votes
1 answer
120 views

Get content from emeded message?

so im trying to make a "disboard reminder bot" but disboard sends a emeded message that i dont understand how to read with my custom bot... this is what i have: but its just for plain text.. ...
bisti's user avatar
  • 23
2 votes
2 answers
5k views

Send an already existing json file as embed using discord.py

I'm working on my first python discord bot and it's turning out to be pretty decent but I wanted to use embeds for certain responses. One of them includes sending all the features of the bots which ...
dunking-the-hamster's user avatar
2 votes
1 answer
7k views

Discord.py Disable Button / Freeze Button in embed

I'm trying to make a replica of this bot, in which when I press any of the buttons below, it shows a dropdown menu, and you can only use the dropdown menu, rest of all the buttons are frozen or ...
Hiresh Verma's user avatar
2 votes
0 answers
227 views

Custom embed command not working (discord.py)

So I'm writing this custom embed command for my discord.py bot. The bot asks a few questions then send a custom embed with the variables that the user specifies. The bot asks the first question and ...
Miko Tatsu's user avatar
1 vote
3 answers
11k views

discord.py embed youtube video without just pasting link

I am playing around with a discord.py bot, I have pretty much everything working that I need (at this time), but I can't for the life of me figure out how to embed a YouTube video using Embed(). I ...
big.nerd's user avatar
  • 365
1 vote
3 answers
16k views

How do I put a member's image and nick on embed? (w/ discord.py)

I want to put the avatar and nick of the person who ran a command in the embed, something like this: requested by: (avatar) (nick) but I do not know how to start....
user avatar
1 vote
3 answers
2k views

How do you send more than one embed per Interaction in Discord.py?

I want to make a Discord interaction that sends a picture for as often as you say in 'howmany', but with my current code it send 1 embed with a picture and the rest without one. How to fix this? @tree....
lorenzfohl's user avatar
1 vote
1 answer
4k views

How to use custom emojis in discord.py embeds like this image: [duplicate]

I want to use a custom emoji... I am developing a discord bot and I would like to import a custom emoji (imported one) in my discord.Embed() but can not figure out how... How did this bot do it? ...
Hyperba's user avatar
  • 109
1 vote
1 answer
1k views

How to fix this error with discord.py embed in webhooks

I am trying to make a webhook but I managed to fix most of it but now I keep getting this error and I don't know where to start. Here is the error: /discordpy-webhook/main.py Traceback (most recent ...
Gawaxine's user avatar
1 vote
1 answer
802 views

discord bot set embed message color

So I made this code for sending embed messages, if you write 000000 it will make the embed black, but if you write ff0000 for red color, it won't work, you have to write 0xff0000 for it to work, is ...
PeterProfits's user avatar
1 vote
0 answers
97 views

Discord.py embed thumbnail direct from website url

I'm not able to embed a thumbnail using a link from the image source on the website. Have managed to for multiple sites, just seems to be this one. We are outputting this to a database which does ...
user avatar
1 vote
1 answer
933 views

Discord py interactive multi-page reaction embed

The following is a discord.py cog for a multi-page embed you can interact with using emoji reactions. IMPORTS: import discord from discord.ext import commands import random import asyncio from ...
GremGrem's user avatar
1 vote
1 answer
148 views

Discord.py: Have one check have two different error outputs

So, I have gone through and added different functions to my discord bot. I am working on making it to where a function if used incorrectly can have two different error outputs depending on the users ...
CRM000's user avatar
  • 35
1 vote
2 answers
6k views

how to edit ephemeral messages in discord.py

@slash.command( name = 'create', description = 'Start a new giveaway ', guild_ids = guild, options = [ Option( 'title', 'Enter title of the giveaway', OptionType.STRING, ...
Hiresh Verma's user avatar
1 vote
1 answer
288 views

How to get guild info of all the members of my server

I want to get guild information of all the members of my server, and then show top 10 members of guild member who have the most coins @client.event async def on_guild_join(guild): with open(&...
Hiresh Verma's user avatar
1 vote
1 answer
93 views

Correct arguments? Embed using variables?

Hi I'm very new to discord.py, I am creating a bot for my friends server as a test. In the commands arguments, I want to pass three separate arguments, one is the author of the message, two is an ...
Booker5677's user avatar
1 vote
1 answer
3k views

Discord py forward messages(with embeds) sent on one channel to another and how to determine number of members in a server?

I want to forward messages sent on a particular channel to another channel based on number of reactions on 🔻 emoji reaction. The message has a few embeds and is being sent by the YAGPDB.xyz bot from ...
Nick Rogers's user avatar
1 vote
2 answers
2k views

Discord Embed : Is there a way to make the embed columns bigger ? Or prevent line breaks?

So I'm messing around with embeds because I just discovered them and I want to make a nice display of all the players of my team. I already have the data storing and commands and all, so my question ...
Mateo Vial's user avatar
1 vote
2 answers
1k views

Scrolling down in a discord.py embed

This is my embed rn It uses the google API to get upcoming events on a calendar but I have to limit the number of events it gets since the message will be too long. The list of calendars is stored in ...
Joshua Siraj's user avatar
0 votes
2 answers
6k views

How to ping people/roles inside a Discord Embed?

So I've looked around and although there are a bunch of similarly phrased questions but I haven't found one that addresses my question. I don't really want to trawl through Stack Overflow, so here's ...
crw2's user avatar
  • 101
0 votes
2 answers
577 views

Trying to create Embed Command discord.py

I am creating Embed cmd for my bot and I want my bot to ask for the channel in which the user wants to send the embed, but I ran into a error while doing so. Code: @bot.command() async def buildembed(...
IDK's user avatar
  • 131
0 votes
1 answer
44k views

Discord Bot Embed Custom Emoji

I'm creating a python discord bot which will output messages in an embed format. I have added a few custom emoji's to the discord server and would like to use these in the embed message. I would ...
MeHead's user avatar
  • 7
0 votes
3 answers
4k views

How can I set an image or thumbnail as the bot's avatar in discord.py embed?

Is it possible to set the embed image as the bot's profile picture? If user's: embed=discord.Embed(title="This is my profile pick") embed.set_author(name="name", icon_url=ctx....
Hyperba's user avatar
  • 109
0 votes
2 answers
132 views

I want to delete the trigger of the embed automatically how do I do it?

ex . trigger - hi , the bot responds with hello but I want the bot to automatically delete the trigger hi . async def cd(ctx, message=None): embed=discord.Embed(description= " \n ", color=...
lexy's user avatar
  • 31
0 votes
2 answers
100 views

Why do my embeds look like code on Discord.py?

I was trying to make a help embed page for my bot that I'm working on. However instead of embedding it shows this gibberish: The code that I used: @client.command async def help(ctx): print("...
maxim pavlenko's user avatar
0 votes
2 answers
3k views

(discord.py) Adding reactions to an embed posted by a discord bot

To preface: I am VERY inexperienced with Python, and have never taken a class for it. This is my first time coding Python/making a discord bot. Right here I have an embed that is triggered by a ...
Pxrrot's user avatar
  • 5
0 votes
2 answers
320 views

discord.Embed not being treated as embed discord.py

In first place, sorry for confusing title guys, but i've got no Idea, how to call it more precisely. So here's my problem: I have code that's used to get discord.Embed object from previous message: ...
Moder New's user avatar
  • 498
0 votes
1 answer
2k views

Discord.py embed not getting sent

I was just writing a bot with discord.py but there seems to be a problem in my help command because for some reason the embed which I wish to send is not showing up. This is my code for the help ...
Fiery panda's user avatar
0 votes
2 answers
9k views

How can I edit an embed color with my discord bot with discord.py

I've been working on a discord bot for fun. I was wondering how I could use edit_message to change the embed color of the message. Here is my code: @bot.command() async def test(self): """Embed ...
Ace's user avatar
  • 33
0 votes
2 answers
3k views

Using a variable for a masked link; discord.py embed posted through webhook; python

For a discord bot that will post links, for the URL that it outputs to be masked variable = url + "/collection/" + str(field[1]) + "test" embed.add_field(name=str(field[0]), value=str("![test]!({...
Chris Petrozza's user avatar
0 votes
2 answers
315 views

Issue with displaying thumbnail in Discord message using discord.py

I'm currently developing a Discord bot using the discord.py library, and I've encountered an issue with displaying thumbnails in my Discord messages. The code I'm using appears to be correct, but I'm ...
Xaalek's user avatar
  • 112
0 votes
1 answer
3k views

How to send a discord embed with one image in discord.py?

Rather than just sending an image, I want my discord bot to use Discord embed and have an image attached to it, however, when trying to use set_image and sending a new embed to discord no output is ...
Cr3 D's user avatar
  • 143
0 votes
1 answer
107 views

Discord python embed won't update numerical value

So, from this image, you can see that this won't update the value of "wins" or "losses" despite the wins += 1 and losses += 1 addition I have under each if/elif statement. Here is ...
clxrity's user avatar
  • 407
0 votes
1 answer
555 views

How to add reaction to message sent from bot

My bot sends a embed into a specific channel, after that he should also add 2 reactions to his embed he sent. But i'm kinda stuck at that and searching through website wasn't successful. if '!...
svbtikk's user avatar
  • 15
0 votes
2 answers
44 views

Is it possible to remove embed value?

I have been trying to remobe the value of an embed because I don't like it there but I cant find a way to "bypass" it. Does anyone have a solution? https://i.stack.imgur.com/eQxrG.png
Akkeuu's user avatar
  • 3
0 votes
1 answer
530 views

Create specific embed discord with a class

I want to create my discord embed with a class named embed because the embed lines takes a lot of space in my code and I want to optimize it. Thank you for reading me. My discord file @bot.command() ...
Rems's user avatar
  • 1
0 votes
1 answer
593 views

Discord Embed image not working in discord.py

I'm making a bot with discord.py and I want to send the mentioned user's avatar with a glass filter.. This is my code import aiohttp import json import requests bot = commands.Bot(command_prefix=']') ...
Rovindu Thamuditha's user avatar
0 votes
1 answer
1k views

Discord.py | When working with embeds, how does one use a for loop to generate a variable's worth of fields?

I'm currently working on a discord.py dice roller command that allows one to input an argument for a number of dice to roll. As this command outputs to an embed, I would like each dice roll to output ...
Senuvox's user avatar
  • 111
0 votes
1 answer
76 views

How to get embed content from a deleted message?

@commands.Cog.listener() async def on_raw_message_delete(self, payload): try: conn.reconnect() except: pass print("deleted") ...
FuryBaM's user avatar
  • 11
0 votes
1 answer
313 views

Discord.py: Use special responses in checks to cause different output

So, this may seem like a bit of an odd question, but I recently created a command for my discord bot that takes the user step-by-step through creating an embed. It works perfectly, but I wanted to ...
Dom's user avatar
  • 138
0 votes
1 answer
229 views

How would I code an embed that gives a random image from a set of images I have the URLs of? (Discord.py)

Here's what it looks like right now. It doesn't work tho, as when I type the command in (.testyi), my bot just comes up with a thin blank embed. async def testyi(ctx): items = [ discord.Embed(...
Benjamin's user avatar
0 votes
1 answer
617 views

discord.py join message embed not getting sent

I was just trying to code a welcome message for new members who join the server. I wanted to send an embed everytime a new member joins. However, the embed is not getting sent. Could someone please ...
Fiery panda's user avatar
0 votes
0 answers
71 views

Add images to corresponding messages to my discord bot using python

I made a small bot for my discord sever for fun and I am trying to see if I can add corresponding images to a list of messages my bot sends in the channel after I type the command in. I tried looking ...
Dorin Damian's user avatar