mirror of
https://github.com/stoatchat/javascript-client-api.git
synced 2026-07-19 17:13:35 -04:00
57 lines
971 B
TypeScript
57 lines
971 B
TypeScript
import type { Attachment } from "./Autumn";
|
|
import type { Username } from "./Users";
|
|
import type { Id } from "./_common";
|
|
|
|
export interface Bot {
|
|
/**
|
|
* Bot ID
|
|
*
|
|
* This matches the bot's User ID.
|
|
*/
|
|
_id: Id
|
|
|
|
/**
|
|
* Bot owner's User ID
|
|
*/
|
|
owner: Id
|
|
|
|
/**
|
|
* Bot authentication token
|
|
*/
|
|
token: string
|
|
|
|
/**
|
|
* Whether the bot can be added by anyone
|
|
*/
|
|
public: boolean
|
|
|
|
/**
|
|
* Interactions endpoint URL
|
|
*
|
|
* Required for dynamic interactions such as bot commands and message actions. Events will be sent over HTTP and a response may be generated directly.
|
|
*/
|
|
interactions_url?: string
|
|
}
|
|
|
|
export interface PublicBot {
|
|
/**
|
|
* Bot ID
|
|
*/
|
|
_id: Id
|
|
|
|
/**
|
|
* Bot username
|
|
*/
|
|
username: Username
|
|
|
|
/**
|
|
* Bot avatar
|
|
*/
|
|
avatar?: Attachment
|
|
|
|
/**
|
|
* Bot description, taken from profile text
|
|
*/
|
|
description?: string
|
|
}
|