How do I embed a response? Discord Bot Python

This is the code I have and I was wondering how do I make it so that the bot embeds the requirements. @client.command() async def partner(ctx): await ctx.send(“””__Requirements:__ 1)…

Discord.py WELCOMER – How to make a custom image for welcome messages

I’d like to add the “custom” image for new discord users in my server. Just like this: Click here for the image. This is what I have for now: @client.event async def on_member_join(member): …

Translation in discord.py bot doesn’t work

I’ve been trying to make my discord bot translate texts using a module called googletrans. It seems fairly simple and it should have worked without any hassle, or so I thought. So after my import …

How to add timeout, python discord bot

I made a guess the character game in discord bot, (see the code below). I want to add 30 second timeout for a player to response, but I totally dont know what to do, any help? @client.command() async …

Am I using the on_guild_leave function correctly?

So I looked at many sources saying that on_guild_leave is how it is used, but I can’t get it to work. Here is my code: @client.event async def on_guild_join(guild): # noqa try: await …

How can I make the bot say something when someone tries to kick a higher admin or himself?

When someone tries to kick a higher in rank admin the bot does nothing not even an error, I want it instead to return a text into chat. Also if someone tries to kick/ban himself it works, how can I …

Cooldowns, reactions and few more problems with discord.py

Im creating a discord bot in python and i have few problems i would like to get a help with. 1. I would like to know how to add cooldown on a command. So for example someone will use a command and …

How to wait for message in DM if the user sent a command in a channel? [closed]

I wanna know how to wait for message in DM if the user sent a command in a channel using discord.py.

How do I reference “*args” in a discord bot’s code as a message for the bot to send?

This is my code: client.say(output) does not work, but I tried to do it in this form: await message.channel.send(output) However, I don’t know what to put for message as my function’s parameter is *args Is there a something else I can put as the message? Answer Firstly, you need to have a parameter for your command so that context can be passed to it, this is ctx in this case. client.say() is not what you want to use anymore. I’ve changed your code a bit, hopefully this helps.