Category "discord.py"

Discord Python Bot, auto-unban after given time, how do I save the time until a user gets unbanned even if the bot goes offline?

I'm making a discord bot in python, and want to add a temporary ban command. The only problem is that if the bot goes offline (power outage, altering code, ect.

Discord.py progress bar

Is there any way to make beautiful progress bar and embed it into message. Here's one example of what I want to make: I know I can make an ASCII-style progress

Is there a way to allow your bot to follow announcement channels for other servers through a command?

My bot uses discord.py, is there a way to code it to allow it to automatically follow an announcement channel for other servers to your server through a command

How can I mass lock/unlock channels in discord.py

Hello stack overflow users, I am trying to achieve mass-locking/unlocking channels in this coding language. The commands return no error, but it doesn't lock al

Discord.py Image Editing

I noticed that some bots (e.g. MEE6, Arcane, Tatsu, just to name a few) can take a user's profile and add it onto another image. Is there a way to do this in Di

discord.py MemberNotFound exception when passing a real member

When I pass *grant @user add in Discord I get the following exception: Ignoring exception in command grant: Traceback (most recent call last): File "/Users/te

How to make a discord bot generate invite links from other servers, (Discord.py or py-cord)

I am making a discord bot in discord.py, py-cord, and I was wondering if it's possible to have the bot generate a discord invite for a server and send it to you

"'Command.__call__' was never awaited" when trying to execute Discord bot command on Tkinter button click

I've been trying to create a Discord self bot which posts a message in a specific channel based off a button input on another program. But I receive this error:

Discord.py and Python Schedule, never awaited for?

I'm trying to send a message to a channel once a day at 02:39 using Schedule and Threading but I can't seem to get past asyncio "never awaited for". My code: @b

How to install modules on the shell automatically on repl.it using python

I am making a discord bot, for this I needed to make buttons for an embed, and to do that I needed to import a library. Once I imported it in the code replit wo

Is there a way to send messages to every member on a discord server? (discord.py)

So, I want to send a message to everyone on a discord server, except one. How can I do it? Because, with my code it checks if it's that user over and over. (and

Discord Error 403 error code: 50001 Missing Access

when i run python3.9 -m ctbot i got this error, and the slash command will not be updated. after i kicked my bot and reinvited my bot to my server, the slash co

Reacting messages with Emojis in Discord.py

I'm making a bot with Python and I want to send messages with emojis. How can I react a message in discord.py? I found this method in stackoverflow but How can

Can't jump to next channel when bot does not have permission to send message discord.py

So, I wrote some code, that sends a message to each channel in a server; server_id = 974656708672925260 message = "test" thread = 20

How to make tkinter work with discord.py?

I want to control my discord.py bot with tkinter buttons, but when I place client.run(token) above tk.mainloop() the discord.py bot runs, but the tkinter window

I am having trouble setting a GIF in an embed in discord.py

I currently have a list of gifs in a list in a different python file(I don't know how to use json) and I have for an embed embed.set_image(url=random.choice(gif

Python + Flask + Discord: How to send a message through discord through a flask endpoint?

I'm trying to send a message with discord, activated through a Flask endpoint I get the following error message when I call http://127.0.0.1:5000/send RuntimeEr

Python Discord Bot reproduce audio from youtube link

I'm trying to make my discord bot reporoduce audio from a link @client.command() async def play(ctx, url): #...code but it seems that I need to have install

Is there a thing in discord.py similar to streamTIme in discord.js?

I'm using the package youtube_dl for the play music command. After a while, now I've been working on the rewind & forward commands, I have implemented a bas

Discord.py: How to fix "event loop is closed"

I am new to programming. I am trying to have my discord bot open up command prompt to confirm it can run, but I am getting this error: File "C:\Users\---\Ap