Constructors
Properties
Protected Readonlyapplication
Protected Staticname
name: string
Methods
boot
- boot(): Awaitable<void>
Returns Awaitable<void>
onMessageCreate
- onMessageCreate(message): boolean
Parameters
- message: Message<boolean>
Returns boolean
onPresenceUpdate
- onPresenceUpdate(oldPresence, newPresence): undefined | false
Parameters
- oldPresence: null | Presence
- newPresence: Presence
Returns undefined | false
triggerMemberStatusUpdate
- triggerMemberStatusUpdate(trigger, __namedParameters): Promise<void>
Parameters
- trigger: {
action: "assign_role" | "take_away_role";
enabled_channels: string[] | "all";
ignore_roles: string[];
ignore_users: string[];
must_contain: string[];
must_not_contain: string[];
roles: string[];
type: "member_status_update";
}action: "assign_role" | "take_away_role"
enabled_channels: string[] | "all"
ignore_roles: string[]
ignore_users: string[]
must_contain: string[]
must_not_contain: string[]
roles: string[]
type: "member_status_update"
- __namedParameters: TriggerHandlerContext<false>
Returns Promise<void>
triggerMessageSticky
- triggerMessageSticky(trigger, __namedParameters): void
Parameters
- trigger: {
buttons: {
label: string;
url: string;
}[];
enabled_channels: string[] | "all";
ignore_roles: string[];
ignore_users: string[];
message: string;
type: "sticky_message";
}buttons: {
label: string;
url: string;
}[]
enabled_channels: string[] | "all"
ignore_roles: string[]
ignore_users: string[]
message: string
type: "sticky_message"
- __namedParameters: TriggerHandlerContext<true>
Returns void
StaticgetName
- getName(): string
Returns string
Returns the name of the function. Function names are read-only and can not be changed.