1
0
Fork 0

Fix typos

refactor/models
Bsian 2020-01-03 15:23:00 +00:00
parent 0a4be74bc2
commit c60b3ca216
No known key found for this signature in database
GPG Key ID: 097FB9A291026091
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
export { default as announce } from './announce'; export { default as announce } from './announce';
export { default as bearer } from './bearer'; export { default as bearer } from './bearer';
export { default as createAccount } from './createaccount'; export { default as createaccount } from './createaccount';
export { default as cwg } from './cwg'; export { default as cwg } from './cwg';
export { default as deleteaccount } from './deleteaccount'; export { default as deleteaccount } from './deleteaccount';
export { default as disk } from './disk'; export { default as disk } from './disk';

View File

@ -42,7 +42,7 @@ export default class Load extends Command {
delete require.cache[`${corepath}/commands/${args[1]}.js`]; delete require.cache[`${corepath}/commands/${args[1]}.js`];
Object.keys(require.cache).filter((path) => path.includes(`${args[1]}_`)).forEach((path) => delete require.cache[path]); Object.keys(require.cache).filter((path) => path.includes(`${args[1]}_`)).forEach((path) => delete require.cache[path]);
} catch (error) { } catch (error) {
if (error.message.includes('Cannot find module')) return message.channel.createMessage(`${this.client.stores.emojis} ***Cannot find file***`); if (error.message.includes('Cannot find module')) return message.channel.createMessage(`${this.client.stores.emojis.error} ***Could not find file***`);
throw error; throw error;
} }
} }