-
Hi,
But this very quickly doesn't go well because second time onwards I call slash command and click a button I'm getting not found or bad response exceptions. Because I'm making multiple handlers. From what i've read #1386 handler must come in main file where the client is actually initialized. (You guys should include such crucial information in your documentation as I was living under assumption button handler comes where buttons go) But I don't understand how to handle any type of scenario that requires any data movement between slash command module and that handler in main file. This might seem like programming question but I feel like the library is limiting me quite a bit. So my question is how to handle what I've shown in my code, which is wrong because creates multiple handlers. But with just main file handler for button. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
There are several ways to solve your problem:
About your feedback about the lib: |
Beta Was this translation helpful? Give feedback.
There are several ways to solve your problem:
DSharpPlus.Interactivity
and use methods likeDiscordMessage#WaitForButtonAsync
. Find the docs hereAbout your feedback about the lib:
We use standard C# events and target user with an intermediate understanding of the language which should include knowledge about handling events and handling state in an threadsafe and application wide manner