#This is not working

1 messages · Page 1 of 1 (latest)

drowsy ocean
#

Nothing is getting logged from this Listener

acoustic hull
#

Name should be a name not a whole autobiography

#

Doubt we can match it when it has spaces

#

Name is not a description

#

Also I'm not sure what you're trying to achieve here but you should be using interaction handlers for handling interactions, not listeners.

paper gyro
drowsy ocean
#

bruh

#

IM asking you how to to do it the way Im doing it

#

Like Kairen said it goes off the emitter, so the emitter is correctly setup, it doesn't matter about the name cuz other listeners work as well, I do not have time currently to learn interaction handlers, and i would like to make this work like this, on top of that, i have other interactions with "interactionCreate" and they work with no issues

#

So please give me an answer that will help, I didnt ask for code criticism

acoustic hull
#

Well look carefully at the event name and the name of the class

#

Especially the first words

#

Once you see it, you'll probably facepalm

#

(sidenote that we have an Events enum to make mistakes like these less prone of occurring, granted you could still make the same mistake but it'd be a bit harder to do)

#

If you can't figure it out I can spell it out for you but you'll learn better by seeing it yourself

paper gyro
#

What has been confusing me for quite a while, you're using the interactionCreate event for a slash command, when you could use a Command piece instead

acoustic hull
winged ivy
#

I think I also have similar issue #1100679636599459902

And I'm actually using the Events enum. Some listeners work, some do not despite having same event to get triggered on