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

x/oasis/tests/deps.ts>MessageContext

An object oriented Discordeno framework
Latest
class MessageContext
Re-export
import { MessageContext } from "https://deno.land/x/oasis@2.1.0/tests/deps.ts";

Context class for messages

Constructors

new
MessageContext(
bot: T,
message: Message,
prefix: string,
)

Type Parameters

optional
T extends Bot = Bot

Properties

bot: T
message: Message
prefix: string

Methods

reply(options: CreateCommand): Promise<Message | undefined>

sends a message replying to someone

sends a message

Static Methods

getOptionsFromMessage(prefix: string, message: Message): OasisCommandInteractionOption[] | undefined
parseArgs(prefix: string, message: Message): [string, string[]] | undefined
transformArgs(args: string[], commandName?: string): OasisCommandInteractionOption[]