discord-buttons

AttributeError: 'submitButton' object has no attribute '_row' – Discord.py

AttributeError: 'submitButton' object has no attribute '_row' – Discord.py Question: I keep getting this error for a Discord.py button and after searching the internet I still cant find out why it is happening. Any help would be greatly appreciated. Thanks! AttributeError: ‘submitButton’ object has no attribute ‘_row’ class submitButton(discord.ui.Button): def __init__(self): @discord.ui.button(label="Submit Entry", style=discord.ButtonStyle.blurple, row=3) …

Total answers: 1

discordpy2 button interaction.edit_original_response() returning 404 not found (error code :10015)

discordpy2 button interaction.edit_original_response() returning 404 not found (error code :10015) Question: I am attempting to make a menu in a Discord.py bot using buttons in a slash command. My code: class helpbclass(discord.ui.View): def __init__(self): super().__init__() self.value = None @discord.ui.button(label="General", style=discord.ButtonStyle.blurple, emoji=" ") async def general(self, interaction: discord.Interaction, button: discord.ui.Button): await interaction.response.edit_original_response(‘general’) @discord.ui.button(label="Moderation", style=discord.ButtonStyle.blurple, emoji=" ") …

Total answers: 3