UNPKG

discord.js-selfbot-v13-proxy

Version:

A unofficial discord.js-selfbot-v13 fork for creating selfbots with proxy [Based on discord.js v13]

17 lines (14 loc) 414 B
'use strict'; const { Events } = require('../../../util/Constants'); /** * @typedef {Object} InteractionResponseBody * @property {Snowflake} id Interaction ID * @property {Snowflake} nonce nonce in POST /interactions */ module.exports = (client, { d: data }) => { if (client.user.bot) { client.actions.InteractionCreate.handle(data); } else { client.emit(Events.INTERACTION_CREATE, data); } };