Packages@robojs/discordjs
getClient()
Function: getClient()
function getClient(): ClientGet the Discord client instance. Returns the client if it has been initialized, otherwise throws.
Returns
Client
Example
import { getClient } from '@robojs/discordjs'
const client = getClient()
client.user?.setPresence({ status: 'online' })