@gary50613/discord.js-command-handler
Advanced tools
Comparing version 2.1.2 to 2.1.3
@@ -13,2 +13,9 @@ const InteractionResponse = require("../Base/InteractionResponse") | ||
this.interaction = interaction | ||
if(this.interaction?.member) | ||
this.member = this.interaction.member | ||
if(this.interaction?.guild_id) | ||
this.guild = bot.guilds.cache.get(this.interaction?.guild_id) | ||
if(this.interaction?.channel_id) | ||
this.channel = bot.channels.cache.get(this.interaction?.channel_id) | ||
} | ||
@@ -15,0 +22,0 @@ |
@@ -20,3 +20,2 @@ const Interaction = require("../Base/Interaction") | ||
bot.ws.on("INTERACTION_CREATE", async (interaction) => { | ||
let executor = this.interactions.get(interaction?.data?.name) | ||
@@ -23,0 +22,0 @@ |
{ | ||
"name": "@gary50613/discord.js-command-handler", | ||
"version": "2.1.2", | ||
"version": "2.1.3", | ||
"description": "simple discord.js command handler", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
18458
366