#Select menu and Roles
1 messages · Page 1 of 1 (latest)
I think the select_callback functions is supposed to just be called callback
Also interaction.response.user doesn't seem like a valid option. Use await user.add_roles() and await interaction.response.send() instead
Or does that work already?
An HTTP exception has occured: 400 HTTPException: Invalid Form Body
In data.components.0.components.0.url: Not a well formed URL.
Here's the context menus example.
No
Uhm did you already look in the docs for the arguments the callback can have?
Because the select argument doesn't seem like it's needed there. Is should already be in self
Yes
isn’t user.guild.get_role(id) needed? or does the raw id work
Should work afaik
yeah you’re right
I'm currently on my phone and can't help any further right now. I'll look into it later when I'm on my pc.
I was wrong lol
In the meantime you could look through the docs and the guide
interaction.user.add_roles(role)
There is also an attribute emoji so it doesn't need to go in label
You need to pass a role not a role ID
Object
Yes
@lean minnow please /close if your problem is solved