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
Is there any way to do this like in discord.py / discord.js. The reason I need to do this is because I need to somehow pass variables and data from my slash command callback to my select menu callback. If anyone knows how to use closures to achieve this, or another method I would be very grateful.
To clarify, I'm looking for a discord go equivalent to something like this in discord.py
asyncdefcommand(ctx:Context):
x=5asyncdefcallback():
# do something with x
...
# we would create the component and add its callback here, and then add to message
The text was updated successfully, but these errors were encountered:
Is there any way to do this like in discord.py / discord.js. The reason I need to do this is because I need to somehow pass variables and data from my slash command callback to my select menu callback. If anyone knows how to use closures to achieve this, or another method I would be very grateful.
To clarify, I'm looking for a discord go equivalent to something like this in discord.py
The text was updated successfully, but these errors were encountered: