Skip to content

Commit

Permalink
Update server.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
shoushou1106 committed Dec 21, 2024
1 parent cbb93e1 commit 3480a51
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,7 @@ router.post('/', async (request, env: Env) => {
"Content-Type": "application/json",
},
body: JSON.stringify({
type: InteractionResponseType.CHANNEL_MESSAGE_WITH_SOURCE,
data: {
content: "init test",
},
type: InteractionResponseType.DEFERRED_CHANNEL_MESSAGE_WITH_SOURCE,
}),
}
);
Expand All @@ -108,7 +105,7 @@ router.post('/', async (request, env: Env) => {
"Content-Type": "application/json",
},
body: JSON.stringify({
type: InteractionResponseType.DEFERRED_UPDATE_MESSAGE,
type: InteractionResponseType.UPDATE_MESSAGE,
data: {
content: "test update",
},
Expand Down

0 comments on commit 3480a51

Please sign in to comment.