Protected
_botProtected
_classProtected
_discordProtected
_eventProtected
_fromProtected
_guardsProtected
Optional
_indexProtected
_keyProtected
Optional
_methodProtected
_onceProtected
_priorityProtected
_restCompiled methods executes all the guards and the main method
compiledMethod = async (params: ArgsOf<any>, client: Client) => {
guard1(params, client)
guard2(params, client)
guard3(params, client)
main(params, client)
}
Rest
...params: unknown[]Gets or sets the originating class reference.
Gets the index of the parameter being decorated, if applicable.
Determines if the target is a class.
Gets the key of the property or method being decorated.
Gets the method descriptor if the target is a method.
Applies the decoration to the specified target.
The class reference.
The property key.
Optional
method: Record<string, any>The method descriptor.
Optional
from: Record<string, any>The originating class reference.
Optional
index: numberThe parameter index.
The current instance.
Decorates an unknown type (class, method, or property).
The class reference.
Optional
key: stringThe property key.
Optional
method: PropertyDescriptorThe method descriptor.
Optional
index: numberThe parameter index.
The current instance.
Execute a guard with params
Rest
...params: unknown[]Static
create
Gets or sets the class reference being decorated.