InteractionListener
class
InteractionListener
sourceexport class InteractionListener<T extends InteractionListenerType> implements InteractionListenerData<T> export class InteractionListener<T extends InteractionListenerType> implements InteractionListenerData<T>constructor(data: InteractionListener.Resolvable<T>) constructor(data: InteractionListener.Resolvable<T>)| Param | Type | Required |
|---|---|---|
| | Yes |
filter(interaction: InteractionFromListenerType<T>): boolean filter(interaction: InteractionFromListenerType<T>): boolean| Param | Type | Required |
|---|---|---|
| | Yes |
Returns:
boolean booleanexecute(interaction: InteractionFromListenerType<T>): Promise<void> execute(interaction: InteractionFromListenerType<T>): Promise<void>| Param | Type | Required |
|---|---|---|
| | Yes |
Returns:
Promise<void> Promise<void>toJSON(): InteractionListenerData<T> toJSON(): InteractionListenerData<T>Returns:
InteractionListenerData<T> InteractionListenerData<T>from<T extends InteractionListenerType>(data: InteractionListener.Resolvable<T>): InteractionListener<T> from<T extends InteractionListenerType>(data: InteractionListener.Resolvable<T>): InteractionListener<T>| Param | Type | Required |
|---|---|---|
| | Yes |
Returns:
InteractionListener<T> InteractionListener<T>