DiSky AddOn Help

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the community!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

GoldySlime

New Member
Mar 31, 2017
6
0
1
Indonesia
I need help to setup DiSky Webhooks connection for Chat / Message

code_language.skript:
on chat:
    if metadata value "staffChat" of player = true:
        cancel event
        send "{@prefix} {@secondaryColor}%player%&7: &d%message%" to all players where [input has permission "staffchat.use"]
        create a new message and store it in {_msg}:
            set the content of the message to message
        make client "staffchat" post {_msg} with username "%player%" with avatar url "https://mc-heads.net/avatar/%player%/100/nohelm.png" and store it in {_msg}

And I get this error everytime I "chat"

Code:
  [Thu 09:01:48 INFO ] [!]
  [Thu 09:01:48 INFO ] [!] DiSky Internal Error (version: 4.29.0)
  [Thu 09:01:48 INFO ] [!] Error type: RejectedExecutionException
  [Thu 09:01:48 INFO ] [!]
  [Thu 09:01:48 INFO ] [!] - - - - - - - - - - - - - - - - - - - - - - - - -
  [Thu 09:01:48 INFO ] [!] The Requester has been stopped! No new requests can be requested!
  [Thu 09:01:48 INFO ] [!]
  [Thu 09:01:48 INFO ] [!] DiSky 4.29.0.jar//net.dv8tion.jda.internal.requests.Requester.request(Requester.java:123)
  [Thu 09:01:48 INFO ] [!] DiSky 4.29.0.jar//net.dv8tion.jda.api.requests.RestFuture.<init>(RestFuture.java:57)
  [Thu 09:01:48 INFO ] [!] DiSky 4.29.0.jar//net.dv8tion.jda.internal.requests.RestActionImpl.submit(RestActionImpl.java:213)
  [Thu 09:01:48 INFO ] [!] DiSky 4.29.0.jar//net.dv8tion.jda.internal.requests.restaction.TriggerRestAction.submit(TriggerRestAction.java:115)
  [Thu 09:01:48 INFO ] [!] DiSky 4.29.0.jar//net.dv8tion.jda.internal.requests.RestActionImpl.complete(RestActionImpl.java:223)
  [Thu 09:01:48 INFO ] [!] DiSky 4.29.0.jar//net.dv8tion.jda.api.requests.RestAction.complete(RestAction.java:609)
  [Thu 09:01:48 INFO ] [!] DiSky 4.29.0.jar//net.itsthesky.disky.elements.effects.webhooks.MakeClientSpeak.execute(MakeClientSpeak.java:92)
  [Thu 09:01:48 INFO ] [!] Skript-2.15.3.jar//ch.njol.skript.util.AsyncEffect.lambda$walk$0(AsyncEffect.java:42)
  [Thu 09:01:48 INFO ] [!] org.bukkit.craftbukkit.scheduler.CraftTask.run(CraftTask.java:78)
  [Thu 09:01:48 INFO ] [!] org.bukkit.craftbukkit.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:57)
  [Thu 09:01:48 INFO ] [!] com.destroystokyo.paper.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:22)
  [Thu 09:01:48 INFO ] [!] java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
  [Thu 09:01:48 INFO ] [!] java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
  [Thu 09:01:48 INFO ] [!] java.base/java.lang.Thread.run(Thread.java:1583)
  [Thu 09:01:48 INFO ] [!] - - - - - - - - - - - - - - - - - - - - - - - - -
  [Thu 09:01:48 INFO ] [!]
 
Your bot stops somewhere sooner than it can reach this line
But my bot is still running, I still can send other message / embed post using skript and discordsrv

This is my "Bot" Load

Code:
define new bot named "CeresBot":

    # The bot's token, small reminder that it MUST be private!
    token: "xxx"

    # Gateway intents enabled, others that are not listed here will be disabled.
    # If you're not sure about that, leave it as 'default intents'.
    intents: default intents

    # Advanced bot option, defining websocket, connection and privacy parameters.
    # Here again, if you're not sure about that, leave it as shown below.
    policy: all
    cache flags: ACTIVITY
    compression: none

    auto reconnect: true
    force reload: false

    on ready:
        register webhooks using event-bot named "staffchat" with url "https://discord.com/api/webhooks/xxx"