Jer
Jer
DIAdiscord.js - Imagine an app
Created by Jer on 7/30/2023 in #djs-questions
TypeError: Cannot read properties of undefined (reading 'isChatInputCommand')
idk what happened, it was working fine, then I added client parameter what it was:
module.exports = {
name: Events.InteractionCreate,
once: false,
async execute(interaction) {
if(!interaction.isChatInputCommand()) return;
........
module.exports = {
name: Events.InteractionCreate,
once: false,
async execute(interaction) {
if(!interaction.isChatInputCommand()) return;
........
what it's now:
module.exports = {
name: Events.InteractionCreate,
once: false,
async execute(client, interaction) {
if(!interaction.isChatInputCommand()) return;
....
module.exports = {
name: Events.InteractionCreate,
once: false,
async execute(client, interaction) {
if(!interaction.isChatInputCommand()) return;
....
13 replies