Asmongold
Asmongold · GPT 작업
Asmonbot Discord Interface
API interface for Asmonbot to interact with Discord servers, channels, and handle specific events like being @mentioned, and responding to the /talk command.
POST /guilds/{guild.id}/messagesPostMessageToGuildPost a message to a specified Discord guild (server).
POST /channels/{channel.id}/messagesPostMessageToChannelPost a message to a specified Discord channel.
GET /users/@me/guildsGetGuildsGet a list of guilds the bot is a member of.
POST /events/messageCreateOnMessageCreateEvent triggered when a new message is created in a channel.
POST /commands/talkTalkToAsmonGPTCommand triggered when someone uses /talk to initiate a conversation with AsmonGPT.
POST /threads/{channel.id}/createCreateThreadCreate a new thread in a specified channel.
원본 API 스키마
{
"openapi": "3.1.0",
"info": {
"title": "Asmonbot Discord Interface",
"description": "API interface for Asmonbot to interact with Discord servers, channels, and handle specific events like being @mentioned, and responding to the /talk command.",
"version": "v1.0.0"
},
"servers": [
{
"url": "https://discord.com/api"
}
],
"paths": {
"/guilds/{guild.id}/messages": {
"post": {
"description": "Post a message to a specified Discord guild (server).",
"operationId": "PostMessageToGuild",
"parameters": [
{
"name": "guild.id",
"in": "path",
"description": "The ID of the guild to post the message in.",
"required": true,
"schema": {
"type": "string"
}
},
{
"name": "content",
"in": "query",
"description": "The content of the message to be posted.",
"required": true,
"schema": {
"type": "string"
}
}
],
"deprecated": false
}
},
"/channels/{channel.id}/messages": {
"post": {
"description": "Post a message to a specified Discord channel.",
"operationId": "PostMessageToChannel",
"parameters": [
{
"name": "channel.id",
"in": "path",
"description": "The ID of the channel to post the message in.",
"required": true,
"schema": {
"type": "string"
}
},
{
"name": "content",
"in": "query",
"description": "The content of the message to be posted.",
"required": true,
"schema": {
"type": "string"
}
}
],
"deprecated": false
}
},
"/users/@me/guilds": {
"get": {
"description": "Get a list of guilds the bot is a member of.",
"operationId": "GetGuilds",
"deprecated": false
}
},
"/events/messageCreate": {
"post": {
"description": "Event triggered when a new message is created in a channel.",
"operationId": "OnMessageCreate",
"parameters": [
{
"name": "content",
"in": "query",
"description": "Content of the created message.",
"required": true,
"schema": {
"type": "string"
}
},
{
"name": "author",
"in": "query",
"description": "Author of the message.",
"required": true,
"schema": {
"type": "string"
}
},
{
"name": "channel.id",
"in": "query",
"description": "ID of the channel where the message was posted.",
"required": true,
"schema": {
"type": "string"
}
}
],
"deprecated": false
}
},
"/commands/talk": {
"post": {
"description": "Command triggered when someone uses /talk to initiate a conversation with AsmonGPT.",
"operationId": "TalkToAsmonGPT",
"parameters": [
{
"name": "user.id",
"in": "query",
"description": "The ID of the user initiating the conversation.",
"required": true,
"schema": {
"type": "string"
}
},
{
"name": "channel.id",
"in": "query",
"description": "The ID of the channel where the command was issued.",
"required": true,
"schema": {
"type": "string"
}
}
],
"deprecated": false
}
},
"/threads/{channel.id}/create": {
"post": {
"description": "Create a new thread in a specified channel.",
"operationId": "CreateThread",
"parameters": [
{
"name": "channel.id",
"in": "path",
"description": "The ID of the channel to create a thread in.",
"required": true,
"schema": {
"type": "string"
}
},
{
"name": "name",
"in": "query",
"description": "Name of the thread.",
"required": true,
"schema": {
"type": "string"
}
},
{
"name": "auto_archive_duration",
"in": "query",
"description": "Duration in minutes until the thread is auto-archived.",
"required": false,
"schema": {
"type": "integer"
}
}
],
"deprecated": false
}
}
},
"components": {
"schemas": {}
}
}