I dont know how to import a Cog funtion into my main.py for my discord bot
Im trying to make a discord bot that will able to run a command from another file using cog yet it seems ot have problems when i try to add my Cog to my main.py file.
Please help, how to fix this: AttributeError: ‘Interaction’ object has no attribute ‘custom_id’
I do not know what to do, I know exactly what the problem is, but I do not understand how I can assume that the button I need is pressed exactly like that. I used the “custom_id” parameter, but I do not know how to count and check this parameter in “on_interaction”. Please help if possible, I will be very grateful, as this is one of the first times when I ask for help on such platforms, although there were problems more complicated than this one
How do I create subcommands in Pycord?
I’m having some trouble creating a subcommand group for my Discord bot, coded in Python using Pycord, a popular & actively maintained fork of discord.py