Discord bot not working

PhantomBot Version: V3.0.0.0
OS Version: Linux 4.15.18-23-pve (Ubuntu 16.04 or 18.10)
Java Version: 1.8.0_222-8u222-b10-1ubuntu1~16.04.1-b10
Browser and Version (for Panel Support): 1.0.0
Stock PhantomBot: Yes

Let us know what help you need:
Hi all, i’m new to phantombot and want to use some discord features as clip handler and the other handlers from discord. But they are not working as in not working. Discord commands are not working neither so i don’t know why it isn’t working… there are no console errors for it…

Have the same(?) problem here since a few weeks
Phantombot works fine on twitch but stopped working on discord.
Found this in the log files:

[12-30-2019 @ 20:36:29.194 GMT] org.mozilla.javascript.WrappedException: Wrapped java.lang.NullPointerException (streamHandler.js#189)
        at org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1893)
        at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:148)
        at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:225)
        at org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:42)
        at org.mozilla.javascript.gen.streamHandler_js_167._c_anonymous_9(streamHandler.js:189)
        at org.mozilla.javascript.gen.streamHandler_js_167.call(streamHandler.js)
        at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:393)
        at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3282)
        at org.mozilla.javascript.gen.streamHandler_js_167.call(streamHandler.js)
        at org.mozilla.javascript.Context$1.run(Context.java:490)
        at org.mozilla.javascript.Context.call(Context.java:501)
        at org.mozilla.javascript.Context.call(Context.java:488)
        at org.mozilla.javascript.JavaAdapter.callMethod(JavaAdapter.java:576)
        at adapter1.run(<adapter>)
        at java.util.TimerThread.mainLoop(Timer.java:555)
        at java.util.TimerThread.run(Timer.java:505)
Caused by: java.lang.NullPointerException
        at tv.phantombot.discord.util.DiscordUtil.getChannel(DiscordUtil.java:379)
        at tv.phantombot.discord.util.DiscordUtil.sendMessageEmbed(DiscordUtil.java:183)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:497)
        at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126)
        ... 14 more

I guess I have the same issue and I don’t know how to solve it.

[02-06-2020 @ 18:28:11.026 GMT] org.mozilla.javascript.WrappedException: Wrapped java.lang.NullPointerException (rol$
    at org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1893)
    at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:148)
    at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:225)
    at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32)
    at org.mozilla.javascript.gen.roleManager_js_145._c_updateRoles_5(roleManager.js:64)
    at org.mozilla.javascript.gen.roleManager_js_145.call(roleManager.js)
    at org.mozilla.javascript.optimizer.OptRuntime.callName(OptRuntime.java:63)
    at org.mozilla.javascript.gen.roleManager_js_145._c_anonymous_4(roleManager.js:50)
    at org.mozilla.javascript.gen.roleManager_js_145.call(roleManager.js)
    at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:393)
    at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3282)
    at org.mozilla.javascript.gen.roleManager_js_145.call(roleManager.js)
    at org.mozilla.javascript.Context$1.run(Context.java:490)
    at org.mozilla.javascript.Context.call(Context.java:501)
    at org.mozilla.javascript.Context.call(Context.java:488)
    at org.mozilla.javascript.JavaAdapter.callMethod(JavaAdapter.java:576)
    at adapter1.run(<adapter>)
    at java.util.TimerThread.mainLoop(Timer.java:555)
    at java.util.TimerThread.run(Timer.java:505)
Caused by: java.lang.NullPointerException
    at tv.phantombot.discord.util.DiscordUtil.getUserById(DiscordUtil.java:432)
    at tv.phantombot.discord.util.DiscordUtil.getUserRoles(DiscordUtil.java:512)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126)
    ... 17 more

I am having a similar issue. I have setup the bot and tested that it works with Twitch and I have added it to Discord but when I look at the dashboard and select Settings -> Modules, Discord is greyed out for me. I have not seen any documentation indicating if I need to install the module outside the original install process.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.