Skip to content

Tag: discord.py

Discord.py editing channel by word that is in the name

I am making statistics bot, and i have a problem, with voice channel containing member count. I want to make bot update name of that channel, on_member_join, on_member_remove and when user use command refresh but i tried many times at different ways, and it stil don’t work, i want to make him edit chann…

Discord.py ping command doesn’t work in a cog

My ping command doesn’t work in a cog but works in my main.py file. Here’s the code for the cog: When I run the ping command I get this error: Answer Simple solution, you added bot to your class object Misc as self.bot so when referring to bot.latency in that context you should actually be using s…

Client and Cogs in discord.py

I recently started trying to develop a discord bot. I’ve used c++ before, but it’s my first time using python so i’m still pretty new to it. After learning about cogs, i tried to implement it into the code. I made a simple cog that contains a ping command, but when i try to run it, i get an …