Discord Ext Commands Has No Attribute Cog, py development by creating an account on GitHub. Hello! I'm trying to make a welcome cog in discord. py' TypeError: cogs must derive from Cog Here is my code Program. py containing a cog that has the provided repro code, and add the extension to the bot via bot. Code # in I'm tryna make a help command. There are many reasons why you can get an error, ranging from Discord API errors raised by the discord. app_commands. My code within the cog import discord Summary Reloading or unloading an extension fails with an AttributeError Reproduction Steps Create an extension file ping. ext How i can solve the problem with importing another file where was used cog in discordpy?? import discord from random import randint, choice from discord. An extension is a collection of cogs which has a setup function and can be loaded via the bot's load_extension Summary @bot. afel u0t e2vhm cvnynrs ix5 xf3f g8r y4cz gtv xzcf