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 9017eb4 commit 52c8ecf
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ const router = AutoRouter();
/**
* A simple hello page to verify the worker is working.
*/
router.get('/', (request, env: Env) => {
return new Response(`Hello World, ${env.DISCORD_APPLICATION_ID}`);
router.get('/', () => {
return new Response(`Hello World`);
});

router.post('/', async (request, env: Env) => {
Expand Down Expand Up @@ -92,7 +92,10 @@ router.post('/', async (request, env: Env) => {
"Content-Type": "application/json",
},
body: JSON.stringify({
type: InteractionResponseType.DEFERRED_CHANNEL_MESSAGE_WITH_SOURCE
type: InteractionResponseType.CHANNEL_MESSAGE_WITH_SOURCE,
data: {
content: "init test",
},
}),
}
);
Expand Down

0 comments on commit 52c8ecf

Please sign in to comment.