get only information of a specific guild

Hey so this code works completely fine but my problem is that it gets info of all the servers that the bot is in. @commands.Cog.listener() async def on_user_update(self, before, after): logs = …

how i can count members in python i need full code

i want to count members in discord but how using async await message.channel.send(f”””# of Members: {id.member_count}”””) i try @client.event async def on_message(…

I am struggling with dming members with a certain role in discord.py

Here’s the code import discord import random from discord.ext import commands, tasks from discord.utils import get @client.command() async def play(ctx): red_role = discord.utils.get(ctx….

Retrieving a message from on_raw_reaction_add discord.py

I’ve been trying to make it so the bot removes the reaction using discord.Message.remove_reaction(), but I can’t find a way to actually retrieve and store the message in a variable. Does anybody know …

TypeError: on_message() missing 1 required positional argument: ‘message’

Hello I tried to make a bot with Discord.py and I tried implementing this to my code but I get the error in the title. I don’t know a lot of Python yet and I’m very new so I don’t know what may cause …

The code keeps on trowing an error “`The command help is already an existing command or alias“` Why is this so and how do I fix it?

Im working on a discord bot in python but as soon as I run the code it shows an error The command help is already an existing command or alias. and it isn’t anywhere else in the code. Here is the code …

My bot wont run the on_message/on_ready event properly

When i tried to start up my bot, it wouldnt run the on_message event and it wouldnt run the on_ready event either. Here is my code: import os from discord.ext import commands from datetime import …

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 …

How do I create a custom cycling status in discord.py?

I have a discord bot that I’m using to learn how to use the API and to practise my python knowledge. I’m trying to create a system that randomly chooses a status and applies it then waits a short time,…

Discord Python Bot Multiple Value in embed field

So i have a discord bot (using python) that connect to a sqlite database, and i want to show the data using embed. The data is containing my daily anime schedule. Here’s the code : @commands.command(…