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
Currently embedded commands may receive the output from previous commands via req.cog_env. This isn't particularly obvious and we also need to use cog_env for other, more envy things (see #618). To make it more clear embedded commands handle_message function will receive an additional argument that contains the decoded json from the previous command.
I was actually wrong about this the command request (passed into handle_message as req) contains all the env vars that we pass to relay, so I think reading previous output from req.cog_env and env vars from req is fine for now.
Currently embedded commands may receive the output from previous commands via
req.cog_env
. This isn't particularly obvious and we also need to usecog_env
for other, moreenv
y things (see #618). To make it more clear embedded commandshandle_message
function will receive an additional argument that contains the decoded json from the previous command.parent #399
The text was updated successfully, but these errors were encountered: