Command
Implementation of the Discord Command Interaction class in Luau
Properties
The Command instance has no set properties!
Methods
The Command instance has no set methods!
Functions
getUsers
Command . getUsers () -> ()
self: Command
Returns a list of users who have been mentioned in this interaction
getMembers
Command . getMembers () -> ()
self: Command
Returns a list of members who have been mentioned in this interaction
getRoles
Command . getRoles () -> ()
self: Command
Returns a list of roles which have been mentioned in this interaction
getChannels
Command . getChannels () -> ()
_self: Command
Returns a list of channels which have been mentioned in this interaction
getMessages
Command . getMessages () -> ()
self: Command
Returns a list of messages which have been mentioned in this interaction
getAttachments
Command . getAttachments () -> ()
self: Command
Returns a list of attachments which have been mentioned in this interaction
sync
Command . sync () -> ()
self: Command
interactionData: apiTypes.InteractionObject
Responsible for syncing data to this component interaction object. This is typically called by the API when this object is created or updated.
new
Command . new () -> ()
state: state.State
interactionData: apiTypes.InteractionObject
Responsible for constructing this class.