Skip to content

@tavora/sdk / DiscordResult

Type Alias: DiscordResult ​

DiscordResult = { data: JsonValue; ok: true; } | { code: number | null; message: string | null; ok: false; reason: "not-connected" | "refused" | "no-answer"; }

Defined in: packages/sdk/src/protocol.ts:580

Discord's answer to a command. not-connected: the connection is not connected right now. refused: Discord answered with an error (code and message are Discord's). no-answer: Discord did not answer in time, the connection ended, or the answer was too large (LIMITS.maxDiscordAnswerBytes).

For Tavora 0.23.9 and @tavora/sdk 0.3.3. Code under the MIT License. The Tavora name and logo are not covered by it.