mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2025-09-08 19:01:26 +03:00
feat: guild bans
This commit is contained in:
21
src/stdin/reload.js
Normal file
21
src/stdin/reload.js
Normal file
@@ -0,0 +1,21 @@
|
||||
const { StdinCommand } = require('@eartharoid/dbf');
|
||||
|
||||
module.exports = class extends StdinCommand {
|
||||
constructor(client, options) {
|
||||
super(client, {
|
||||
...options,
|
||||
id: 'reload',
|
||||
});
|
||||
}
|
||||
|
||||
async run() {
|
||||
this.client.log.warn('Reloading is not the same as restarting!');
|
||||
this.client.log.info('Reinitialising client...');
|
||||
await this.client.init(true);
|
||||
this.client.log.success('Client reinitialised');
|
||||
// TODO: fix this
|
||||
// this.client.log.info('Reloading module components...');
|
||||
// this.client.mods.forEach(mod => mod.components.forEach(component => component.reload()));
|
||||
// this.client.log.success('Components reloaded');
|
||||
}
|
||||
};
|
Reference in New Issue
Block a user