mirror of
https://github.com/SrIzan10/handler.git
synced 2026-05-01 10:45:17 +00:00
feat(handler) : refactored ready event and finished loading command
plugins
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import type { Client } from "discord.js";
|
||||
import type { Module } from "../..";
|
||||
import { Module, Sern } from "../..";
|
||||
import { CommandPlugin, Controller, PluginType } from "./plugin";
|
||||
|
||||
export function reload(
|
||||
@@ -13,6 +13,7 @@ export function reload(
|
||||
async execute(client : Client, module: Module, controller : Controller ) {
|
||||
const curGuild = await client.guilds.fetch(data.guildId);
|
||||
await curGuild.commands.edit(data.applicationId, {
|
||||
type : Sern.cmdTypeToDjs(module.type),
|
||||
name : module.name!,
|
||||
description: module.description,
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user