Category "discord.py"

discord one script run multiple times

Friends, I am making a discord script using python I have to run this script multiple times with different parameters, I am trying that with os, threading, mult

I keep getting 'None' when getting enviroment variables

I'm trying to keep my token in an enviroment variable, so I created the file .env, and I stored the TOKEN there: TOKEN=XXX When I run my .py file, I can't get

"on_message" of Discord.py can't work after I implemented "schedule" into it

I'm not familiar with Python so I'm afraid that this could be a silly question for all of you but I have already tried my best to solve it. I worked on a self-p

role react bot discord python

I'm trying to create a react role on a message that my bot would have sent, how can I do it? here is my code debut: @bot.command(name = 'role_react_1') async de

Python Discord: RuntimeError: Event loop is closed when launched from a specific network

RuntimeError: Event loop is closed error when trying to run any bot in discord when connected to my wifi network. When connected to another network, everything

does anyone know how to fix this discord.py error

I keep getting this error. Everything is imported right and everything is installed. The code was working in atom and then all of a sudden I get this error. Eve

Coinflip Embed Command Discord.py?

How would I go about making a coinflip embed command. What I want it to do is make a discord embed saying Coinflip | (Bot Name) as the header, then the field is

'NoneType' object has no attribute 'remove_roles' Discord.py

Keep getting an error for the reaction_remove, just copy-pasted my whole code(minus the client id) cause it might help, I have no idea what's wrong as the first

Discord.py - mute message with timer

i have an issue with my code which when use !mute command to @username 9s it's muted for 9 seconds but when inputted !mute @username 32s it only muted 3 secon

Get all members discord.py

I've got a question, I need to get a list from all members from all servers where the bot is online(I'm using discord.py rewrite), Right now I have this code-sn

Missing argument is required | Discord.py

I tried to make an command which displays mentioned users avatar. This is the code: @client.command(aliases=['av']) async def avatar(ctx, *, member: discord.Mem

"Help" Command (Defectio.py, similar to discord.py)

I am using revolt.chat which has a similar API to discord.py called defectio. This is the documentation for the default help command https://github.com/Darkflam

AttributeError: 'Button' object has no attribute 'get' button error [discord.py]

I would like to make a test button but it writes me an error shows which I did not find anywhere on the internet code: @slash.slash( name="ButtonTest", desc

on_member_join(member) is never called in discord.py

I am making a discord bot with discord.py on python 3.8.6. My other functions, such as on_ready and other commands, work. However, on_member_join is never calle

Discord.py bot gives a block when ban a user. How can I fix that?

When I ban a user using the command, it blocks him/her, so when I unban a user, I want to send to him/her an embed telling him/her "you banned has been removed"

variable is empty even after using global to make it global scoped

I want my program to welcome someone as soon as they join a discord server (discord.py), and that part works fine. However, to get the guild name, my program se

Trying to send a message to a recently created Text Channel using discord.py

The code in question below works flawlesly, it creates a channel and gives it a description. But i can't figure out how to proceed from here and have it send a

When I use the Genius API, it doesn't give me the full lyrics

When i run this code (discord.py), i do not get the full lyrics: @commands.command() async def lyrics(self, ctx, arg1, arg2): song = genius.search_song(arg2

Discord bot adding reactions to a message discord.py (no custom emojis)

I've been trying to make a bot using discord.py add a reaction to a message using discord.py after reading this (which is not what I wanted because I am not usi

client.run("TOKEN") blocking issue (python & discord.py)

I know that client.run("TOKEN") blocks off any code following it...I'm trying to have my program print a message (in my case when a Nike product restocks), and