Relative Content

Tag Archive for pythondiscorddiscord.pypycord

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