roles-bot/packages/bot/utils/respond.ts

3 lines
213 B
TypeScript
Raw Normal View History

2022-04-14 12:41:23 +02:00
import { APIInteractionResponse } from 'discord-api-types/v9';
export const respond = (response: APIInteractionResponse) => new Response(JSON.stringify(response), {headers: {'content-type': 'application/json'}});