@bot.command(aliases=['av']) async def avatar(ctx, *, avamember : discord.Member = None): userAvatarUrl = avamember.avatar_url await ctx.send(userAvata
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
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
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): #
Im using interactions.py and I cant figure out how to respond with an image await ctx.send(files="86.png")
I'm trying to make a command in my discord.py bot that send the image or the video attacched to a post in reddit. But, when a post is with an Image, all works f
So I am trying to create a text channel in a specific category. It worked but suddenly it's not. This is my Code: import discord from discord.ext import command
I coded on_eaw_reaction_add and it works just fine @commands.Cog.listener() async def on_raw_reaction_add(self, payload): msgID = 754487460142
I am building a Discord bot in Python and would like to receive HTTP requests from Twitch.tv's API (See Webhooks Guide & Webhooks Reference) (To subscribe t
@commands.command(name='8ball', description='Let the 8 Ball Predict!\n') async def _8ball(self, ctx, question): responses = ['As I see it, yes.
I have recently been following this tutorial to get myself started with Discord's API. Unfortunately, when I got the part about printing all the users in the gu
I am trying to make a discord.py command that accepts a string as a positional argument. How do I accept a string from a Discord message (and, by extension, boo
I am trying to make a discord.py command that accepts a string as a positional argument. How do I accept a string from a Discord message (and, by extension, boo
I'm working on a Discord bot and it works to some degree but it keeps crashing every couple minutes. It gives me an error like Task was detroyed but it's pendi
I'm trying to understand how migrating from Discord.py version 1.7.3 to 2.0 works. In particular, this is test code I'm using: from discord.ext import commands
So I managed to get the basics of my Bot working which is good. However, when I try and send a message, for example execute /ping, the bot replies to it regardl
I am using the code below to dm every member on the server and sometimes bot get rate limted at ultimately banned. I know this is against tos but out of curiosi
I am using the code below to dm every member on the server and sometimes bot get rate limted at ultimately banned. I know this is against tos but out of curiosi
I have a list that stores dictionaries of the names of the servers my bot is in. The following is within a for loop, so server_name is different for each server
This is the huge error im getting: Traceback (most recent call last): File "C:\Users\User\AppData\Roaming\Python\Python310\site-packages\discord\http.py", lin