import { Client } from "https://deno.land/x/commandis@v0.6.5/deps.ts";
Client which communicates with gateway and manages REST API communication.
Properties
cache: CacheType
collectors: Collector<any>[]
gatewayData: GetGatewayType | undefined
readonly
guilds: GuildManagershards: Gateway[]
slashCommands: Map<Snowflake, ApplicationCommandRootType>
status: StatusType
user: User | null
readonly
users: UserManagerMethods
_fetch<T>(): Promise<T>
method: string,
path: string,
body?: string | FormData | null,
json?,
contentType?: string | boolean,
headers?: DictionaryType,
_performReq(path: string, req: RequestInit): Promise<Response>
fetchSlashCommands(guildID?: Snowflake): Promise<ApplicationCommandRootType[]>
Fetches slash commands.
registerCollector<T>(collector: Collector<T>): Collector<T>
registerOverwriteCommandBulk(command: ApplicationCommandRootType[], guildID?: Snowflake)
Overwrites a bunch of slash commands.
registerSlashCommand(command: ApplicationCommandRootType, guildID?: Snowflake)
Registers a slash command.
removeCollector(id: number, done?)
Sets selected cache capacity to specifed value. 0 is infinity, -1 and less disables cache entirely. Note: when changing capacity cache is cleared
toString()