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 = …
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 = …
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(…
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….
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 …
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 …
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 …
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 …
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 …
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,…
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(…