RepliableInteraction
Defined in: sdk/js/src/interactions/base.ts:74
Interactions that can be answered with messages (all but autocomplete).
Extends
Section titled “Extends”Extended by
Section titled “Extended by”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new RepliableInteraction(
raw):RepliableInteraction
Defined in: sdk/js/src/interactions/base.ts:32
Parameters
Section titled “Parameters”Interaction
Returns
Section titled “Returns”RepliableInteraction
Inherited from
Section titled “Inherited from”Properties
Section titled “Properties”appPermissions
Section titled “appPermissions”
readonlyappPermissions:bigint
Defined in: sdk/js/src/interactions/base.ts:20
The bot’s effective permissions in the channel.
Inherited from
Section titled “Inherited from”BaseInteraction.appPermissions
readonlybotId:string
Defined in: sdk/js/src/interactions/base.ts:15
The bot’s id in this community.
Inherited from
Section titled “Inherited from”channelId
Section titled “channelId”
readonlychannelId:string
Defined in: sdk/js/src/interactions/base.ts:16
Inherited from
Section titled “Inherited from”createdTimestamp
Section titled “createdTimestamp”
readonlycreatedTimestamp:number
Defined in: sdk/js/src/interactions/base.ts:24
When the host received it, ms.
Inherited from
Section titled “Inherited from”BaseInteraction.createdTimestamp
deferred
Section titled “deferred”deferred:
boolean=false
Defined in: sdk/js/src/interactions/base.ts:30
Whether the response was deferred.
Inherited from
Section titled “Inherited from”
readonlyid:string
Defined in: sdk/js/src/interactions/base.ts:13
The interaction id.
Inherited from
Section titled “Inherited from”locale
Section titled “locale”
readonlylocale:string
Defined in: sdk/js/src/interactions/base.ts:22
The invoker’s locale (BCP 47), if their client sent one.
Inherited from
Section titled “Inherited from”member
Section titled “member”
readonlymember:Member
Defined in: sdk/js/src/interactions/base.ts:18
Who triggered it: interaction.member.send(...) sends them a DM.
Inherited from
Section titled “Inherited from”
readonlyraw:Interaction
Defined in: sdk/js/src/interactions/base.ts:26
The WIT interaction, for anything the classes do not expose.
Inherited from
Section titled “Inherited from”replied
Section titled “replied”replied:
boolean=false
Defined in: sdk/js/src/interactions/base.ts:28
Whether an initial response was sent.
Inherited from
Section titled “Inherited from”Accessors
Section titled “Accessors”userId
Section titled “userId”Get Signature
Section titled “Get Signature”get userId():
string
Defined in: sdk/js/src/interactions/base.ts:44
The invoker’s member id.
Returns
Section titled “Returns”string
Inherited from
Section titled “Inherited from”Methods
Section titled “Methods”deferReply()
Section titled “deferReply()”deferReply(
options?):void
Defined in: sdk/js/src/interactions/base.ts:81
Shows “thinking…” and buys 15 minutes; finish with editReply.
Parameters
Section titled “Parameters”options?
Section titled “options?”ephemeral?
Section titled “ephemeral?”boolean
Returns
Section titled “Returns”void
deleteReply()
Section titled “deleteReply()”deleteReply():
void
Defined in: sdk/js/src/interactions/base.ts:92
Deletes the original response.
Returns
Section titled “Returns”void
editReply()
Section titled “editReply()”editReply(
payload):void
Defined in: sdk/js/src/interactions/base.ts:87
Replaces the original response (ends a deferred reply).
Parameters
Section titled “Parameters”payload
Section titled “payload”Returns
Section titled “Returns”void
followUp()
Section titled “followUp()”followUp(
payload):string
Defined in: sdk/js/src/interactions/base.ts:97
Another message, within 15 minutes (at most 10).
Parameters
Section titled “Parameters”payload
Section titled “payload”Returns
Section titled “Returns”string
isAnySelectMenu()
Section titled “isAnySelectMenu()”isAnySelectMenu():
boolean
Defined in: sdk/js/src/interactions/base.ts:67
Returns
Section titled “Returns”boolean
Inherited from
Section titled “Inherited from”BaseInteraction.isAnySelectMenu
isAutocomplete()
Section titled “isAutocomplete()”isAutocomplete():
boolean
Defined in: sdk/js/src/interactions/base.ts:69
Returns
Section titled “Returns”boolean
Inherited from
Section titled “Inherited from”BaseInteraction.isAutocomplete
isButton()
Section titled “isButton()”isButton():
boolean
Defined in: sdk/js/src/interactions/base.ts:61
Returns
Section titled “Returns”boolean
Inherited from
Section titled “Inherited from”isChannelSelectMenu()
Section titled “isChannelSelectMenu()”isChannelSelectMenu():
boolean
Defined in: sdk/js/src/interactions/base.ts:66
Returns
Section titled “Returns”boolean
Inherited from
Section titled “Inherited from”BaseInteraction.isChannelSelectMenu
isChatInputCommand()
Section titled “isChatInputCommand()”isChatInputCommand():
boolean
Defined in: sdk/js/src/interactions/base.ts:55
Returns
Section titled “Returns”boolean
Inherited from
Section titled “Inherited from”BaseInteraction.isChatInputCommand
isCommand()
Section titled “isCommand()”isCommand():
boolean
Defined in: sdk/js/src/interactions/base.ts:59
Returns
Section titled “Returns”boolean
Inherited from
Section titled “Inherited from”isContextMenuCommand()
Section titled “isContextMenuCommand()”isContextMenuCommand():
boolean
Defined in: sdk/js/src/interactions/base.ts:56
Returns
Section titled “Returns”boolean
Inherited from
Section titled “Inherited from”BaseInteraction.isContextMenuCommand
isMentionableSelectMenu()
Section titled “isMentionableSelectMenu()”isMentionableSelectMenu():
boolean
Defined in: sdk/js/src/interactions/base.ts:65
Returns
Section titled “Returns”boolean
Inherited from
Section titled “Inherited from”BaseInteraction.isMentionableSelectMenu
isMessageComponent()
Section titled “isMessageComponent()”isMessageComponent():
boolean
Defined in: sdk/js/src/interactions/base.ts:60
Returns
Section titled “Returns”boolean
Inherited from
Section titled “Inherited from”BaseInteraction.isMessageComponent
isMessageContextMenuCommand()
Section titled “isMessageContextMenuCommand()”isMessageContextMenuCommand():
boolean
Defined in: sdk/js/src/interactions/base.ts:58
Returns
Section titled “Returns”boolean
Inherited from
Section titled “Inherited from”BaseInteraction.isMessageContextMenuCommand
isModalSubmit()
Section titled “isModalSubmit()”isModalSubmit():
boolean
Defined in: sdk/js/src/interactions/base.ts:68
Returns
Section titled “Returns”boolean
Inherited from
Section titled “Inherited from”isRepliable()
Section titled “isRepliable()”isRepliable():
boolean
Defined in: sdk/js/src/interactions/base.ts:70
Returns
Section titled “Returns”boolean
Inherited from
Section titled “Inherited from”isRoleSelectMenu()
Section titled “isRoleSelectMenu()”isRoleSelectMenu():
boolean
Defined in: sdk/js/src/interactions/base.ts:64
Returns
Section titled “Returns”boolean
Inherited from
Section titled “Inherited from”BaseInteraction.isRoleSelectMenu
isStringSelectMenu()
Section titled “isStringSelectMenu()”isStringSelectMenu():
boolean
Defined in: sdk/js/src/interactions/base.ts:62
Returns
Section titled “Returns”boolean
Inherited from
Section titled “Inherited from”BaseInteraction.isStringSelectMenu
isUserContextMenuCommand()
Section titled “isUserContextMenuCommand()”isUserContextMenuCommand():
boolean
Defined in: sdk/js/src/interactions/base.ts:57
Returns
Section titled “Returns”boolean
Inherited from
Section titled “Inherited from”BaseInteraction.isUserContextMenuCommand
isUserSelectMenu()
Section titled “isUserSelectMenu()”isUserSelectMenu():
boolean
Defined in: sdk/js/src/interactions/base.ts:63
Returns
Section titled “Returns”boolean
Inherited from
Section titled “Inherited from”BaseInteraction.isUserSelectMenu
reply()
Section titled “reply()”reply(
payload):string
Defined in: sdk/js/src/interactions/base.ts:76
Answers with a message in the channel (or only to the invoker with ephemeral).
Parameters
Section titled “Parameters”payload
Section titled “payload”Returns
Section titled “Returns”string