abstract superclass methods can be defined as protected
parent
e8f730c967
commit
ad85bda7a0
|
@ -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);
|
||||||
|
|
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue