mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2024-11-17 09:23:07 +02:00
Added more logging
This commit is contained in:
parent
bae6af96f7
commit
44ee84d8f7
16
src/listeners/autocomplete/componentLoad.js
Normal file
16
src/listeners/autocomplete/componentLoad.js
Normal file
@ -0,0 +1,16 @@
|
||||
const { Listener } = require('@eartharoid/dbf');
|
||||
|
||||
module.exports = class extends Listener {
|
||||
constructor(client, options) {
|
||||
super(client, {
|
||||
...options,
|
||||
emitter: client.autocomplete,
|
||||
event: 'componentLoad',
|
||||
});
|
||||
}
|
||||
|
||||
run(autocompleter) {
|
||||
this.client.log.info(`Loaded "${autocompleter.id}" autocompleter`);
|
||||
return true;
|
||||
}
|
||||
};
|
16
src/listeners/buttons/componentLoad.js
Normal file
16
src/listeners/buttons/componentLoad.js
Normal file
@ -0,0 +1,16 @@
|
||||
const { Listener } = require('@eartharoid/dbf');
|
||||
|
||||
module.exports = class extends Listener {
|
||||
constructor(client, options) {
|
||||
super(client, {
|
||||
...options,
|
||||
emitter: client.buttons,
|
||||
event: 'componentLoad',
|
||||
});
|
||||
}
|
||||
|
||||
run(button) {
|
||||
this.client.log.info(`Loaded "${button.id}" button`);
|
||||
return true;
|
||||
}
|
||||
};
|
16
src/listeners/menus/componentLoad.js
Normal file
16
src/listeners/menus/componentLoad.js
Normal file
@ -0,0 +1,16 @@
|
||||
const { Listener } = require('@eartharoid/dbf');
|
||||
|
||||
module.exports = class extends Listener {
|
||||
constructor(client, options) {
|
||||
super(client, {
|
||||
...options,
|
||||
emitter: client.menus,
|
||||
event: 'componentLoad',
|
||||
});
|
||||
}
|
||||
|
||||
run(menu) {
|
||||
this.client.log.info(`Loaded "${menu.id}" menu`);
|
||||
return true;
|
||||
}
|
||||
};
|
16
src/listeners/modals/componentLoad.js
Normal file
16
src/listeners/modals/componentLoad.js
Normal file
@ -0,0 +1,16 @@
|
||||
const { Listener } = require('@eartharoid/dbf');
|
||||
|
||||
module.exports = class extends Listener {
|
||||
constructor(client, options) {
|
||||
super(client, {
|
||||
...options,
|
||||
emitter: client.modals,
|
||||
event: 'componentLoad',
|
||||
});
|
||||
}
|
||||
|
||||
run(modal) {
|
||||
this.client.log.info(`Loaded "${modal.id}" modal`);
|
||||
return true;
|
||||
}
|
||||
};
|
Loading…
Reference in New Issue
Block a user