#How do I handle and/or add a DIH4JDA listener?

19 messages · Page 1 of 1 (latest)

fallow shard
#

How do I handle and/or add a listener where if the user has insufficient permissions to use the administrative command, it'll ephemerally reply to the user that they don't have the sufficient permissions to be able to use the command.

The warning:

DIH4JDALogger - WARN: onInsufficientPermissions was fired, but not handled (No listener registered)
maiden abyssBOT
#

This post has been reserved for your question.

Hey @fallow shard! Please use /close or the Close Post button above when you're finished. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.

TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.

fallow shard
#

im noob at dis

maiden abyssBOT
#

💤 Post marked as dormant

This post has been inactive for over 300 minutes, thus, it has been archived.
If your question was not answered yet, feel free to re-open this post or create a new one.

static furnace
maiden abyssBOT
fallow shard
#

ok thanks

fallow shard
#

yeah I think class

static furnace
#

it's an interface

fallow shard
#

o

#

well uh, I know I didn't implement this properly:

Exception in thread "main" java.lang.IllegalArgumentException: Listener classes must implement DIH4JDAEventListener!
    at xyz.dynxsty.dih4jda.DIH4JDA.addEventListener(DIH4JDA.java:173)
    at com.hedreon.hedreobot.Bot.main(Bot.java:23)
#

yes, I added the interface, I did add some code into the onInsufficientPermissions method, it may have to do with how I registered the listener

static furnace
fallow shard
#

thanks