feat: rework commands and fix bugs
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
import { CommandResponseError } from "./CommandResponseError";
|
||||
|
||||
export class InstanceNotFoundError extends CommandResponseError {
|
||||
instanceName;
|
||||
|
||||
constructor(instanceName) {
|
||||
super(`§cInstance "${instanceName}" not found.`);
|
||||
this.name = 'InstanceNotFoundError';
|
||||
this.instanceName = instanceName;
|
||||
}
|
||||
|
||||
getRawMessage() {
|
||||
return { translate: 'construct.error.instanceNotFound', with: [this.instanceName] };
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user