DiSkyOrg / DiSky

The best Skript add-on for Discord management! Slash commands, interaction, components, modal and much more available!
https://disky.me/
Apache License 2.0
42 stars 12 forks source link

Discord commands do not work #204

Closed EdouxDev closed 3 months ago

EdouxDev commented 3 months ago

Versions

Description

The code i used:

discord command ping:
    prefixes: !
    trigger:
        reply with "Pong!"

This code is same with the code in wiki. There is no problem at reloading skript, it does not give me an error. But when i go to my discord channel and type "!ping", it occurs an error(or warning) in console, and the "reply with Pong!" does not work.

Ekran görüntüsü 2024-05-10 220651 Ekran görüntüsü 2024-05-10 220731

[DiSky] Task #3064 for DiSky v4.16.0 generated an exception
java.lang.NullPointerException: Cannot invoke "java.lang.reflect.Method.invoke(Object, Object[])" because "this.PARSE_I" is null
    at info.itsthesky.disky.elements.commands.CommandFactory.parseArguments(CommandFactory.java:64) ~[DiSky.4.16.0.jar:?]
    at info.itsthesky.disky.elements.commands.CommandObject.execute(CommandObject.java:68) ~[DiSky.4.16.0.jar:?]
    at info.itsthesky.disky.elements.commands.CommandListener.lambda$exe$0(CommandListener.java:91) ~[DiSky.4.16.0.jar:?]
    at org.bukkit.craftbukkit.v1_20_R3.scheduler.CraftTask.run(CraftTask.java:101) ~[pufferfish-1.20.4.jar:git-Pufferfish-47]
    at org.bukkit.craftbukkit.v1_20_R3.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:482) ~[pufferfish-1.20.4.jar:git-Pufferfish-47]
    at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1653) ~[pufferfish-1.20.4.jar:git-Pufferfish-47]
    at net.minecraft.server.dedicated.DedicatedServer.tickChildren(DedicatedServer.java:450) ~[pufferfish-1.20.4.jar:git-Pufferfish-47]
    at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1532) ~[pufferfish-1.20.4.jar:git-Pufferfish-47]
    at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1227) ~[pufferfish-1.20.4.jar:git-Pufferfish-47]
    at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:320) ~[pufferfish-1.20.4.jar:git-Pufferfish-47]
    at java.lang.Thread.run(Thread.java:1623) ~[?:?]

Acknowledgment

TrasonCo commented 3 months ago

This is no Disky error, your Skript versiojn is just too low you need 2.8+ (2.8.4 or 2.8.5 works too)

EdouxDev commented 3 months ago

Yeah i updated Skript and it is now working, sorry then it's my bad (requirements say that 2.6 is enough) image

EquipableMC commented 3 months ago

Yeah i updated Skript and it is now working, sorry then it's my bad (requirements say that 2.6 is enough) image

well yeah thats because there is older versions of Disky that work on 2.7.3 and below, newer versions require 2.8+