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