You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been working with Buttons, and it seems as though the only ways to handle them are to either use the interaction collector (pauses thread waiting for a single button click event) or to define an event handler listening for string IDs
Based on just my observations, it looks like discord handles button callbacks in the same way as it handles context menu buttons and commands, so would it be possible to get a macro along the lines of:
#[poise::command(slash_command, button_callback = "button_id")]
Or #[poise::command(button_callback)] where it listens for the button ID equal to the function name
The text was updated successfully, but these errors were encountered:
I've been working with Buttons, and it seems as though the only ways to handle them are to either use the interaction collector (pauses thread waiting for a single button click event) or to define an event handler listening for string IDs
Based on just my observations, it looks like discord handles button callbacks in the same way as it handles context menu buttons and commands, so would it be possible to get a macro along the lines of:
#[poise::command(slash_command, button_callback = "button_id")]
Or
#[poise::command(button_callback)]
where it listens for the button ID equal to the function nameThe text was updated successfully, but these errors were encountered: