feat: reject full log (InteractionTimeout)

This commit is contained in:
March 7th
2022-12-12 18:40:55 +07:00
parent dea8324c00
commit be786d3876
4 changed files with 24 additions and 8 deletions

View File

@@ -7,10 +7,10 @@ const { Events } = require('../../../util/Constants');
* @property {Snowflake} nonce nonce in POST /interactions
*/
module.exports = (client, packet) => {
module.exports = (client, { d: data }) => {
if (client.user.bot) {
client.actions.InteractionCreate.handle(packet.d);
client.actions.InteractionCreate.handle(data);
} else {
client.emit(Events.INTERACTION_CREATE, packet.d);
client.emit(Events.INTERACTION_CREATE, data);
}
};