diff --git a/util/DiscordEvent.ts b/util/DiscordEvent.ts index 1df7a3e..a0187f4 100644 --- a/util/DiscordEvent.ts +++ b/util/DiscordEvent.ts @@ -3,7 +3,7 @@ export default abstract class DiscordEvent { public name: string; protected client: Client; - constructor(name: string = "", client: Client) { + protected constructor(name: string = "", client: Client) { this.name = name; this.client = client; this.execute = this.execute.bind(this); diff --git a/util/DiscordInteractionCommand.ts b/util/DiscordInteractionCommand.ts index 69c788a..c9b2e84 100644 --- a/util/DiscordInteractionCommand.ts +++ b/util/DiscordInteractionCommand.ts @@ -5,7 +5,7 @@ export default abstract class DiscordInteractionCommand { public description: string; public builder: SlashCommandBuilder; - constructor(name: string, description: string) { + protected constructor(name: string, description: string) { this.name = name; this.description = description; this.builder = new SlashCommandBuilder();