wip: Construct API
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
export class BuilderNotFoundError extends Error {
|
||||
constructor(builderId) {
|
||||
super(`§cBuilder "${builderId}" not found.`);
|
||||
this.name = 'BuilderNotFoundError';
|
||||
}
|
||||
}
|
||||
@@ -8,7 +8,7 @@ export class CommandResponseError extends Error {
|
||||
throw new Error('getRawMessage() must be implemented by subclasses of CommandResponseError');
|
||||
}
|
||||
|
||||
sendTo(source) {
|
||||
source.sendMessage(this.getRawMessage());
|
||||
sendTo(origin) {
|
||||
origin.sendMessage(this.getRawMessage());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user