ODButtonResponderInstance class
under construction
We are still working the API Reference! This page might be incomplete or doesn't contain all details!
Overview
This is an Open Ticket button responder instance.
An instance is an active button interaction. You can reply to the button using reply().
Properties
channel type ➜ discord.TextBasedChannel
The channel where this button was triggered.
didReply boolean ➜ boolean
Did a worker already reply to this instance/interaction?
guild type ➜ null|discord.Guild
The guild where this button was triggered.
interaction type ➜ discord.ButtonInteraction
The interaction which is the source of this instance.
member type ➜ null|discord.GuildMember
The guild member who triggered this button.
message type ➜ discord.Message
The message this button originates from.
user type ➜ discord.User
The user who triggered this button.
Methods
constructor() function ➜ api.ODButtonResponderInstance
(no description)
View Parameters (3)
interaction: type ➜discord.ButtonInteraction- Parameter Description Lorem Ipsum.errorCallback: type ➜null|api.ODResponderTimeoutErrorCallback- Parameter Description Lorem Ipsum.timeoutMs: type ➜null|number- Parameter Description Lorem Ipsum.
defer() function ➜ Promise
Defer this button.
View Parameters (2)
type: type ➜"reply"|"update"- Parameter Description Lorem Ipsum.ephemeral: boolean ➜boolean- Parameter Description Lorem Ipsum.
getMessageComponent() function ➜ null|discord.ButtonComponent
Get a component from the original message of this button.
View Parameters (2)
type: type ➜"button"- Parameter Description Lorem Ipsum.id: type