#ComponentContext
1 messages · Page 1 of 1 (latest)
^bah oui mais comment on fait ?
What are you trying to do?
Are you using pycord? Because on_comportement is not an event in pycord.
I would like to make a discord bot with ticket but i don't no why to make
Sorry, can you be more specific?
What part of the ticket are you working on? Creating the ticket? Options inside the ticket?
I think this is what you are trying to do but I dont think it is the best way to accomplish your issue.
https://docs.pycord.dev/en/master/api.html?highlight=guild#discord.on_interaction
Ah OK sorry. my problem is that "ComponentContext" function is not recognized by vs code
Pycord has nothing called ComponentContext
You might be looking for
https://docs.pycord.dev/en/master/api.html?highlight=context#discord.ApplicationContext
Ah I see you are using a differnt library. (Discord-ui?)
Pycord has the same features just in a different way. Check out the on_interaction event instead. Also uninstall discord-ui as it can mess up things in pycord
what is it to make a discord bot with ticket??