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

x/harmony/src/commands/mod.ts>CommandContext

An easy to use Discord API Library for Deno.
Latest
interface CommandContext
Re-export
import { type CommandContext } from "https://deno.land/x/harmony@v2.9.1/src/commands/mod.ts";

Properties

The Client object

message: Message

Message which was parsed for Command

author: User

The Author of the Message

optional
member: Member

The Author of the message as a Member object

channel: TextChannel

The Channel in which Command was used

prefix: string

Prefix which was used

command: Command

Object of Command which was used

name: string

Name of Command which was used

rawArgs: string[]

Array of Raw Arguments used with Command

args: Record<string, unknown> | null

Array of Arguments used with Command

argString: string

Complete Raw String of Arguments

optional
guild: Guild

Guild which the command has called