SlashCommandModule

class

SlashCommandModule

source
export abstract class SlashCommandModule implements SlashCommandModule
export abstract class SlashCommandModule implements SlashCommandModule
public abstract source

.execute(...)

execute(data: SlashCommand.ExecuteData): Promise<void>
execute(data: SlashCommand.ExecuteData): Promise<void>
ParamTypeRequired
data
data
SlashCommand.ExecuteData
SlashCommand.ExecuteData
Yes

Returns:

Promise<void>
Promise<void>

public static source

.from(...)

from(data: SlashCommandModule.Resolvable): SlashCommandModule
from(data: SlashCommandModule.Resolvable): SlashCommandModule
ParamTypeRequired
data
data
SlashCommandModule.Resolvable
SlashCommandModule.Resolvable
Yes

Returns:

SlashCommandModule
SlashCommandModule

ModuleType.Command
ModuleType.Command
public source

.id

string
string
public abstract source

.data

SlashCommandBuilder.Data
SlashCommandBuilder.Data