Open2
GPTのActionsをどう書くか。
Discord
openapi: 3.0.0
info:
title: Discord Webhook API
version: 1.0.0
description: API specification to interact with a Discord webhook.
servers:
- url: https://discord.com/api
paths:
/webhooks/{ここに、discordチャンネルのwebhook URLのwebhookds/以下の記載を入れる}:
post:
operationId: sendWebhookMessage
summary: Send a message to the Discord webhook.
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
content:
type: string
description: The message content.
username:
type: string
description: Override the default username of the webhook.
avatar_url:
type: string
format: uri
description: Override the default avatar of the webhook.
tts:
type: boolean
description: True if this is a TTS message.
required:
- content
responses:
'204':
description: Message sent successfully.
'400':
description: Bad request.
'401':
description: Unauthorized.
'500':
description: Server error.
ChatGPT - ActionsGPT https://chat.openai.com/g/g-TYEliDU6A-actionsgpt