Channels

Channel Management & Interaction

List Channels

GET http://localhost:8080/api/channels/

This endpoint returns an array of all channels the bot has access to.

Headers

NameTypeDescription

Authentication

string

Authentication Bearer token.

[
    {
        "name": string,
        "id": number
    }
]

Send Message

POST http://localhost:8080/api/channels/:channelname

This endpoint allows you to send a message to a channel.

Path Parameters

NameTypeDescription

channelname

string

Name of the channel (not the id).

Headers

NameTypeDescription

Authentication

string

Authentication Bearer token.

Request Body

NameTypeDescription

message

string

Message content (can include emojis).

{
    "result": true
}

Last updated