SlashCommandEvent
implements
StoppableEventInterface
uses
OpensModals
Table of Contents
Interfaces
- StoppableEventInterface
Properties
-
$adapter
: Adapter
-
$channel
: Channel
-
$command
: string
-
$message
: Message
-
$options
: array<string|int, mixed>
-
$raw
: mixed
-
$text
: string
-
$thread
: Thread
-
$triggerId
: string|null
-
$user
: Author
-
$propagationStopped
: bool
Methods
-
__construct()
: mixed
-
isPropagationStopped()
: bool
-
openModal()
: array<string|int, mixed>|null
-
stopPropagation()
: void
$adapter
read-only
public
Adapter
$adapter
$channel
read-only
public
Channel
$channel
$command
read-only
public
string
$command
$message
read-only
public
Message
$message
$options
read-only
public
array<string|int, mixed>
$options
= []
$raw
read-only
public
mixed
$raw
= null
$text
read-only
public
string
$text
$thread
read-only
public
Thread
$thread
$triggerId
read-only
public
string|null
$triggerId
= null
$user
read-only
public
Author
$user
$propagationStopped
private
bool
$propagationStopped
= false
__construct()
public
__construct(Adapter $adapter, Channel $channel, Thread $thread, Message $message, Author $user, string $command, string $text[, mixed $raw = null ][, string|null $triggerId = null ][, array<string|int, mixed> $options = [] ]) : mixed
Parameters
-
$adapter
: Adapter
-
-
$channel
: Channel
-
-
$thread
: Thread
-
-
$message
: Message
-
-
$user
: Author
-
-
$command
: string
-
-
$text
: string
-
-
$raw
: mixed
= null
-
-
$triggerId
: string|null
= null
-
-
$options
: array<string|int, mixed>
= []
-
isPropagationStopped()
public
isPropagationStopped() : bool
openModal()
public
openModal(Modal $modal) : array<string|int, mixed>|null
Parameters
-
$modal
: Modal
-
Return values
array<string|int, mixed>|null
stopPropagation()
public
stopPropagation() : void