Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/oasis/packages/builders/client/Client.ts>OasisClient

An object oriented Discordeno framework
Latest
class OasisClient
import { OasisClient } from "https://deno.land/x/oasis@2.1.0/packages/builders/client/Client.ts";

Constructors

new
OasisClient(events?: Partial<EventHandlers>)

Methods

addIntent(intents: GatewayIntents): this

Adds intents to the bot's instance

addIntents(intents: Array<keyof GatewayIntents> | Array<GatewayIntents>): this

Adds multiple intents via `setIntent``

defineEvent(name: keyof EventHandlers, fn: EventHandlers[name])

Defines an event

setId(id: bigint): this

Optionally set the bot's id

setToken(token: string): this
start<A extends Bot>(plugins?: Array<(bot: Bot) => Bot>): Promise<A>

Starts the bot