Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Context

Command Context

Hierarchy

  • Context

Index

Constructors

constructor

Properties

client

client: ShardClient

Optional command

command: Command

commandClient

commandClient: CommandClient

message

message: Message

Optional metadata

metadata: undefined | object

Optional prefix

prefix: undefined | string

typing

typing: Typing | null

Optional typingTimeout

typingTimeout: Timers.Timeout

Accessors

application

applications

canDelete

  • get canDelete(): boolean
  • Returns boolean

canManage

  • get canManage(): boolean
  • Returns boolean

canReact

  • get canReact(): boolean
  • Returns boolean

canReply

  • get canReply(): boolean
  • Returns boolean

channel

channelId

  • get channelId(): string
  • Returns string

channels

  • Returns Channels

cluster

  • Returns ClusterClient | null

content

  • get content(): string
  • Returns string

emojis

  • Returns Emojis

fromBot

  • get fromBot(): boolean
  • Returns boolean

fromSystem

  • get fromSystem(): boolean
  • Returns boolean

fromUser

  • get fromUser(): boolean
  • Returns boolean

fromWebhook

  • get fromWebhook(): boolean
  • Returns boolean

gateway

  • get gateway(): Socket
  • Returns Socket

guild

  • get guild(): null | Guild
  • Returns null | Guild

guildId

  • get guildId(): undefined | string
  • Returns undefined | string

guilds

  • Returns Guilds

inDm

  • get inDm(): boolean
  • Returns boolean

manager

me

  • Returns null | Member

member

  • get member(): undefined | Member
  • Returns undefined | Member

members

  • Returns Members

messageId

  • get messageId(): string
  • Returns string

messages

  • Returns Messages

notes

  • Returns Notes

owners

  • get owners(): BaseCollection<string, User>
  • Returns BaseCollection<string, User>

presences

  • Returns Presences

relationships

response

  • Returns Message | null

rest

  • Returns RestClient

roles

  • Returns Roles

sessions

  • Returns Sessions

shardCount

  • get shardCount(): number
  • Returns number

shardId

  • get shardId(): number
  • Returns number

systemContent

  • get systemContent(): string
  • Returns string

typings

user

  • Returns User

userId

  • get userId(): string
  • Returns string

users

  • Returns Users

voiceCalls

  • Returns VoiceCalls

voiceChannel

voiceConnection

  • Returns undefined | VoiceConnection

voiceConnections

voiceState

  • Returns null | VoiceState

voiceStates

  • Returns VoiceStates

Methods

editOrReply

  • Parameters

    Returns Promise<Message>

reply

  • reply(options?: CreateMessage | string): Promise<Message>
  • Parameters

    • Default value options: CreateMessage | string = {}

    Returns Promise<Message>

toJSON

  • Returns Message

toString

  • toString(): string
  • Returns string

triggerTyping

  • triggerTyping(): Promise<any>
  • Returns Promise<any>

Generated using TypeDoc