#cannot make a view persistent

1 messages · Page 1 of 1 (latest)

stuck oyster
#

I get the following error
ValueError: View is not persistent. Items need to have a custom_id set and View must have no timeout
My code is ```
@discord.ui.button(label="Click here to verify", style=discord.ButtonStyle.primary, custom_id='dafdsas')

in a class
and

bot.add_view(eButton())

in on_ready
molten dune
molten dune
#

I think so, otherwise you won't be able to make it persistent.

stuck oyster
#

ok

stuck oyster
#

nvm it works

#

thx

molten dune
#

Cool. Well done! rooDuck