abstract superclass methods can be defined as protected

pull/1/head
Matthew 2024-03-22 00:18:20 -04:00
parent e8f730c967
commit ad85bda7a0
Signed by: matthew
SSH Key Fingerprint: SHA256:piIXekA9q1p0ZGi4ogFbNY1embip5Ytbi3v8AZ8UYq4
2 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@ export default abstract class DiscordEvent {
public name: string; public name: string;
protected client: Client; protected client: Client;
constructor(name: string = "", client: Client) { protected constructor(name: string = "", client: Client) {
this.name = name; this.name = name;
this.client = client; this.client = client;
this.execute = this.execute.bind(this); this.execute = this.execute.bind(this);

View File

@ -5,7 +5,7 @@ export default abstract class DiscordInteractionCommand {
public description: string; public description: string;
public builder: SlashCommandBuilder; public builder: SlashCommandBuilder;
constructor(name: string, description: string) { protected constructor(name: string, description: string) {
this.name = name; this.name = name;
this.description = description; this.description = description;
this.builder = new SlashCommandBuilder(); this.builder = new SlashCommandBuilder();