8 lines
243 B
JavaScript
Raw Normal View History

2022-03-19 17:37:45 +07:00
'use strict';
const { Events } = require('../../../util/Constants');
2022-03-19 17:37:45 +07:00
module.exports = (client, packet) => {
if (client.user.bot) client.actions.InteractionCreate.handle(packet.d);
else client.emit(Events.INTERACTION_CREATE, packet.d);
2022-03-19 17:37:45 +07:00
};