Skip to content

Commit

Permalink
as const
Browse files Browse the repository at this point in the history
  • Loading branch information
kravetsone committed Nov 10, 2024
1 parent d5e4056 commit 4424ee5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docs/plugins/official/scenes.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,10 @@ const testScene = new Scene("test")
return context.send("1");

// u can fine type issues with this when returns non update session data but just ignore it for now
return context.scene.update({ messageId: context.id, some: "hii!" });
return context.scene.update({
messageId: context.id,
some: "hii!" as const,
});
})
.step("message", async (context) => {
if (context.scene.step.firstTime || context.text !== "2")
Expand Down

0 comments on commit 4424ee5

Please sign in to comment.