roles-bot/packages/bot/utils/respond.ts
2022-04-14 12:41:23 +02:00

3 lines
No EOL
213 B
TypeScript

import { APIInteractionResponse } from 'discord-api-types/v9';
export const respond = (response: APIInteractionResponse) => new Response(JSON.stringify(response), {headers: {'content-type': 'application/json'}});