Context class for Simpukka runtime. Tells context and metadata. Metadata like who is author of the action,
what triggered it, where it will send the result. It also allows you to add embed to the result message.
flowchart LR
ctx[(ctx)]
set_embed[[set_embed]]
click set_embed callback "Set embed which will be sent to with the result message. Ensure embed is edited set before calling this.
Changes after won't show up."
ctx --- set_embed
set_embed_arg[embed]
click set_embed "https://docs.monni.fyi/en/simpukka/object/discord/embed"
set_embed --- set_embed_arg
disable_message[[disable_message]]
click disable_message callback "Disable sending the result message to the context channel."
ctx --- disable_message
message_state{message_state}
click message_state callback "Gets the state of whether the message sending has been disabled."
ctx --- message_state
get_embed[get_embed]
click get_embed callback "Get the currently set embed."
ctx --- get_embed
Set embed which will be sent to with the result message. Ensure embed is edited set before calling this. Changes after setting won’t show up.
Disable sending the result message to the context channel.
Gets the state of whether the message sending has been disabled.
Get the currently set embed.