#AttributeError 'Button' object has no attribute 'user'

1 messages · Page 1 of 1 (latest)

bleak sequoia
#
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?
#

Error: AttributeError 'Button' object has no attribute 'user'

vagrant marlin
bleak sequoia