class Name(discord.ui.View):
def __init__(self):
super().__init__(timeout=None)
self.value = None
@discord.ui.button(label="Titlte", style=discord.ButtonStyle.grey, custom_id="title-id")
async def confirm(self, interaction: discord.Interaction, button: discord.ui.Button):
user = interaction.user``` Why?
#AttributeError 'Button' object has no attribute 'user'
1 messages · Page 1 of 1 (latest)
order should be self, button, interaction
Okay thank you very much, that goes