Category "discord.py"

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

Command for posting user's avatar

@bot.command(aliases=['av']) async def avatar(ctx, *, avamember : discord.Member = None): userAvatarUrl = avamember.avatar_url await ctx.send(userAvata

Discord Music Bot

I am creating a discord bot that plays music. It successfully joins a channel but then returns an error when searching for music. This is my code: @client.comma

How to get/save the attachment in a slash command?

What I'm trying to do here is get the url or raw file of a slash command attachment. Being the inexperienced person that I am, I've ran into some issues. On dis

Python mention random users from role

How can I mention multiple random users from a role member by using a command in a discord channel. @bot.command(pass_context=True) async def mention(ctx): #

_Context.send() got an unexpected keyword argument 'files'

Im using interactions.py and I cant figure out how to respond with an image await ctx.send(files="86.png")