ODCommandResponderInstance class
We are still working the API Reference! This page might be incomplete or doesn't contain all details!
Overview
This is an Open Ticket command responder instance.
An instance is an active slash interaction or used text command. You can reply to the command using reply() for both slash & text commands.
Methods
Properties
channel type ➜ discord.TextBasedChannel
The channel where this command was triggered.
cmd type ➜ api.ODSlashCommand|api.ODTextCommand
The command wich is the source of this instance.
didReply boolean ➜ boolean
Did a worker already reply to this instance/interaction?
guild type ➜ null|discord.Guild
The guild where this command was triggered.
interaction type ➜ discord.ChatInputCommandInteraction|discord.Message
The interaction which is the source of this instance.
member type ➜ null|discord.GuildMember
The guild member who triggered this command.
options class ➜ api.ODCommandResponderInstanceOptions
The manager for all options of this command.
type type ➜ "interaction"|"message"
The type/source of instance. (from text or slash command)
user type ➜ discord.User
The user who triggered this command.
Methods
constructor() function ➜ api.ODCommandResponderInstance
(no description)
View Parameters (5)
interaction: type ➜discord.ChatInputCommandInteraction|discord.Message- Parameter Description Lorem Ipsum.cmd: type ➜api.ODSlashCommand|api.ODTextCommand- Parameter Description Lorem Ipsum.errorCallback: type ➜null|api.ODResponderTimeoutErrorCallback- Parameter Description Lorem Ipsum.timeoutMs: type ➜null|number- Parameter Description Lorem Ipsum.options: array ➜api.ODTextCommandInteractionOption[]- Parameter Description Lorem Ipsum.
defer() function ➜ Promise
Defer this command.
View Parameters (1)
ephemeral: boolean ➜boolean- Parameter Description Lorem Ipsum.
modal() function ➜ Promise
Show a modal as reply to this command.
View Parameters (1)
modal: interface ➜api.ODModalBuildResult- Parameter Description Lorem Ipsum.
reply() function ➜ Promise
Reply to this command.
View Parameters (1)
msg: interface ➜api.ODMessageBuildResult- Parameter Description Lorem Ipsum.
Defaults
We're still working on this part of the documentation!
Examples
We're still working on this part of the documentation!