@kamkam1_0/discord.js
Version:
Allows you to fully interact with discord's apis
20 lines (17 loc) • 534 B
JavaScript
const Base = require("./base")
class Component extends Base{
constructor(type, component, bot){
super(type, component, bot)
this.custom_id = component.data.custom_id
}
async deferredResponse(options){
let informations = {
botToken: this._token,
bot: this._bot,
interaction_id: this.id,
interaction_token: this.token
}
return interactionMethod.reply(informations, options, true)
}
}
module.exports = Component