feat: guild bans

This commit is contained in:
Isaac
2024-12-20 02:24:32 +00:00
parent ca38235309
commit 30cd5413c4
6 changed files with 113 additions and 37 deletions

21
src/stdin/reload.js Normal file
View 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');
}
};