GithubHelp home page GithubHelp logo

diskyorg / disky Goto Github PK

View Code? Open in Web Editor NEW
42.0 2.0 12.0 1.07 MB

The best Skript add-on for Discord management! Slash commands, interaction, components, modal and much more available!

Home Page: https://disky.me/

License: Apache License 2.0

Java 100.00%
bot discord skript

disky's Introduction

DiSky


What is DiSky?

DiSky is a Skript addon, which allows you to create, manage and edit Discord's bots.

It provides more than 600 different syntax, such as:

  • Creating entities (roles, channels, categories, etc.)
  • Editing existing entities
  • Send advanced messages with embeds, polls, components or attachments
  • Several's utilities syntax to let developer make their bot's faster and easier.
  • Fully supports Slash commands, including option types, sub-commands, groups and auto-completion arguments.
  • Fully supports Interactions (buttons, select menus, modals(text input pop-up))
  • Fully supports forums & posts!
  • And much, much more!

Useful links

Modules

  • Lavaplayer Turn your bot into a private disco with music streaming.
  • TranSkript Website generation to re-create conversation, including the replies, attachments, colors, references, and much more!

Requirements

  • Skript 2.8.0 or higher
  • Spigot/Paper/Any fork of them 1.13.0 or higher

Note: Even if DiSky is only based on Skript, some features require Bukkit's or Spigot's API. The 1.13+ version is a more recommended version than a requirement.

Incompatibilities

  • DiscordSRV (it uses an older version of JDA that DiSky is not based on)
  • any other JDA-compiled plugin, that doesn't have JDA 5 as JDA version.

disky's People

Contributors

bingonymous avatar diskymaster avatar itsthesky avatar kapilarny avatar mushkrem avatar prorickey avatar trasonco avatar wallace4br avatar wallaceinacio avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

disky's Issues

Suggestion for implementations

I realize this may be a bit far fetched.. But it would be really cool :b

If DiSky had some basic features imported from youtube and twitch API's.
I like the idea of using DiSky as a one-stop-shop for my discord bot needs.
So if i was able to link a member who happens to be a content creator, to their respective platforms. ( or just ''listen'' on specific channels) And then have DiSky post notifications about streams and new uploads.

Currently using IFTTT with webhooks, to avoid adding more bots. But the webhooks keep failing at random.

[Bug Report] When adding/removing permissions to/from a role it sends an error

So, idk if i'm doing something wrong but i found this when i was trying to do permissions stuff:

The code:

add (message send) to permissions of ({ticketing.StaffRole::%discord id of event-guild%} parsed as role) in {ticketing.CurrentTicket::Channel::%discord id of event-member%::%discord id of event-guild%}

The error:

[15:53:16 ERROR]: #!#! Something went horribly wrong with Skript.
[15:53:16 ERROR]: #!#! This issue is NOT your fault! You probably can't fix it yourself, either.
[15:53:16 ERROR]: #!#! It looks like you are using some plugin(s) that alter how Skript works (addons).
[15:53:16 ERROR]: #!#! Here is full list of them:
[15:53:16 ERROR]: #!#! skRayFall v1.9.21 (https://sk.rayfall.net/) skript-reflect v2.2.4-dev (https://github.com/TPGamesNL/skript-reflect) SkriptJSON v1.0.0 DiSky v4.0-beta2 skUtilities v0.9.2 (https://tim740.github.io/) skript-yaml v1.3.2 MundoSK v1.8.5 (https://forums.skunity.com/resources/mundosk.69/) SkQuery v4.1.3 Reqn v1.2.1 SkEmail v1.7 Skar v1.0 Skent v3.1.0 
[15:53:16 ERROR]: #!#! We could not identify which of those are specially related, so this might also be Skript issue.
[15:53:16 ERROR]: #!#! You should try disabling those plugins one by one, trying to find which one causes it.
[15:53:16 ERROR]: #!#! If the error doesn't disappear even after disabling all listed plugins, it is probably Skript issue.
[15:53:16 ERROR]: #!#! In that case, you will be given instruction on how should you report it.
[15:53:16 ERROR]: #!#! On the other hand, if the error disappears when disabling some plugin, report it to author of that plugin.
[15:53:16 ERROR]: #!#! Only if the author tells you to do so, report it to Skript's issue tracker.
[15:53:16 ERROR]: #!#! 
[15:53:16 ERROR]: #!#! Stack trace:
[15:53:16 ERROR]: #!#! java.lang.NullPointerException: Cannot invoke "info.itsthesky.disky.elements.commands.CommandEvent.getJDAEvent()" because "event" is null
[15:53:16 ERROR]: #!#!     at DiSky.4.0-beta2.jar//info.itsthesky.disky.elements.Types.lambda$static$38(Types.java:237)
[15:53:16 ERROR]: #!#!     at DiSky.4.0-beta2.jar//info.itsthesky.disky.api.DiSkyType$1.parse(DiSkyType.java:57)
[15:53:16 ERROR]: #!#!     at Skript.jar//ch.njol.skript.expressions.ExprParse.get(ExprParse.java:157)
[15:53:16 ERROR]: #!#!     at Skript.jar//ch.njol.skript.lang.util.SimpleExpression.getArray(SimpleExpression.java:99)
[15:53:16 ERROR]: #!#!     at Skript.jar//ch.njol.skript.lang.util.SimpleExpression.getSingle(SimpleExpression.java:57)
[15:53:16 ERROR]: #!#!     at DiSky.4.0-beta2.jar//info.itsthesky.disky.api.skript.EasyElement.parseSingle(EasyElement.java:46)
[15:53:16 ERROR]: #!#!     at DiSky.4.0-beta2.jar//info.itsthesky.disky.elements.properties.PermissionsOf.change(PermissionsOf.java:48)
[15:53:16 ERROR]: #!#!     at Skript.jar//ch.njol.skript.effects.EffChange.execute(EffChange.java:281)
[15:53:16 ERROR]: #!#!     at Skript.jar//ch.njol.skript.lang.Effect.run(Effect.java:51)
[15:53:16 ERROR]: #!#!     at Skript.jar//ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:60)
[15:53:16 ERROR]: #!#!     at Skript.jar//ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:88)
[15:53:16 ERROR]: #!#!     at Skript.jar//ch.njol.skript.effects.Delay$1.run(Delay.java:109)
[15:53:16 ERROR]: #!#!     at org.bukkit.craftbukkit.v1_17_R1.scheduler.CraftTask.run(CraftTask.java:101)
[15:53:16 ERROR]: #!#!     at org.bukkit.craftbukkit.v1_17_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:483)
[15:53:16 ERROR]: #!#!     at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:1567)
[15:53:16 ERROR]: #!#!     at net.minecraft.server.dedicated.DedicatedServer.b(DedicatedServer.java:490)
[15:53:16 ERROR]: #!#!     at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:1483)
[15:53:16 ERROR]: #!#!     at net.minecraft.server.MinecraftServer.x(MinecraftServer.java:1282)
[15:53:16 ERROR]: #!#!     at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:319)
[15:53:16 ERROR]: #!#!     at java.base/java.lang.Thread.run(Thread.java:833)
[15:53:16 ERROR]: #!#! 
[15:53:16 ERROR]: #!#! Version Information:
[15:53:16 ERROR]: #!#!   Skript: 2.6.1 (latest)
[15:53:16 ERROR]: #!#!     Flavor: skriptlang-github
[15:53:16 ERROR]: #!#!     Date: 22:18:42.554713200
[15:53:16 ERROR]: #!#!   Bukkit: 1.17.1-R0.1-SNAPSHOT
[15:53:16 ERROR]: #!#!   Minecraft: 1.17.1
[15:53:16 ERROR]: #!#!   Java: 17.0.3 (OpenJDK 64-Bit Server VM 17.0.3+7-Ubuntu-0ubuntu0.20.04.1)
[15:53:16 ERROR]: #!#!   OS: Linux amd64 5.4.0-110-generic
[15:53:16 ERROR]: #!#! 
[15:53:16 ERROR]: #!#! Server platform: Paper
[15:53:16 ERROR]: #!#! 
[15:53:16 ERROR]: #!#! Current node: null
[15:53:16 ERROR]: #!#! Current item: remove [[permission:message send]] from permissions of {ticketing.OpenedTicket::%{ticketing.CurrentTicket::Num::%the discord id of event-types.member%::%the discord id of event-types.guild%} (as java.lang.Object)%} (as java.lang.String) parsed as a types.member in {ticketing.CurrentTicket::Channel::%the discord id of event-types.member%::%the discord id of event-types.guild%} (as net.dv8tion.jda.api.entities.Channel)
[15:53:16 ERROR]: #!#! Current trigger: button click (on button click:) (distune_ticketing.sk, line 184)
[15:53:16 ERROR]: #!#! 
[15:53:16 ERROR]: #!#! Thread: Server thread
[15:53:16 ERROR]: #!#! 
[15:53:16 ERROR]: #!#! Language: english
[15:53:16 ERROR]: #!#! Link parse mode: DISABLED
[15:53:16 ERROR]: #!#! 
[15:53:16 ERROR]: #!#! End of Error.
[15:53:16 ERROR]: #!#! 

command restriction error

disky throws a stactrace when I try to update restrictions of a command.

update restriction of "konsol" in (guild with id "840854247943438336") with (new enabled role restriction with id "841625057359822879")

I have slash command with that name

[18:30:22 INFO]: [!]
[18:30:22 INFO]: [!] DiSky Internal Error (version: 4.0-beta4)
[18:30:22 INFO]: [!] Error type: ErrorResponseException
[18:30:22 INFO]: [!]
[18:30:22 INFO]: [!] 20001: Bots cannot use this endpoint
[18:30:22 INFO]: [!]
[18:30:22 INFO]: [!] Full Stacktrace:
[18:30:22 INFO]: [!]
[18:30:22 INFO]: [!] DiSky.4.0-beta4.jar//net.dv8tion.jda.api.exceptions.ErrorResponseException.create(ErrorResponseException.java:185)
[18:30:22 INFO]: [!] DiSky.4.0-beta4.jar//net.dv8tion.jda.api.requests.Request.onFailure(Request.java:117)
[18:30:22 INFO]: [!] DiSky.4.0-beta4.jar//net.dv8tion.jda.internal.requests.RestActionImpl.handleResponse(RestActionImpl.java:273)
[18:30:22 INFO]: [!] DiSky.4.0-beta4.jar//net.dv8tion.jda.api.requests.Request.handleResponse(Request.java:259)
[18:30:22 INFO]: [!] DiSky.4.0-beta4.jar//net.dv8tion.jda.internal.requests.Requester.execute(Requester.java:238)
[18:30:22 INFO]: [!] DiSky.4.0-beta4.jar//net.dv8tion.jda.internal.requests.Requester.execute(Requester.java:142)
[18:30:22 INFO]: [!] DiSky.4.0-beta4.jar//net.dv8tion.jda.internal.requests.Requester.execute(Requester.java:125)
[18:30:22 INFO]: [!] DiSky.4.0-beta4.jar//net.dv8tion.jda.internal.requests.ratelimit.BotRateLimiter$Bucket.run(BotRateLimiter.java:481)
[18:30:22 INFO]: [!] java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
[18:30:22 INFO]: [!] java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
[18:30:22 INFO]: [!] java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304)
[18:30:22 INFO]: [!] java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
[18:30:22 INFO]: [!] java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
[18:30:22 INFO]: [!] java.base/java.lang.Thread.run(Thread.java:833)
[18:30:22 INFO]: [!]

Channel restriction

Hi ! This is my first issue and I'm not sure how github works. Sorry if I got it wrong. I suggest adding channel restriction for slash commands.

I can't load my bot

I use the last version of disky, on paper 1.19.1 with last version of skript and my can't don't work
unknown

code:

define new bot named "xx": 

    token: "xx"

    intents: default intents

    policy: all
    auto reconnect: true
    compression: none
    
    on ready:
        set presence of bot named "xx" to streaming "xx" with url "https://twitch.tv/xx"

Unknown Bug

[09:47:36 ERROR]: [net.dv8tion.jda.internal.requests.WebSocketClient] Got an unexpected error. Please redirect the following message to the devs:
        JDA 5.0.0-alpha.13_0e17a16
        CHANNEL_UPDATE -> {"nsfw":false,"rate_limit_per_user":0,"flags":0,"bitrate":64000,"user_limit":0,"type":2,"guild_hashes":{"metadata":{"hash":"YlMnMw"},"channels":{"hash":"sH96GQ"},"roles":{"hash":"pxMA+Q"},"version":1},"rtc_region":null,"permission_overwrites":[{"allow":"1024","deny":"1050624","id":"889488491736596560","type":0},{"allow":"0","deny":"2097152","id":"889488491736596561","type":0},{"allow":"1068048","deny":"0","id":"458276816071950337","type":1}],"last_message_id":null,"parent_id":"889491392567599194","name":"members-3301","hashes":{"metadata":{"hash":"YlMnMw"},"channels":{"hash":"sH96GQ"},"roles":{"hash":"pxMA+Q"},"version":1},"guild_id":"889488491736596560","position":3,"id":"889491399601455164"}
java.lang.ClassCastException: class net.dv8tion.jda.internal.entities.VoiceChannelImpl cannot be cast to class net.dv8tion.jda.api.entities.IThreadContainer (net.dv8tion.jda.internal.entities.VoiceChannelImpl and net.dv8tion.jda.api.entities.IThreadContainer are in unnamed module of loader 'DiSky.4.3.0 (1).jar' @72520d0f)
        at net.dv8tion.jda.internal.handle.ChannelUpdateHandler.handleInternally(ChannelUpdateHandler.java:380) ~[DiSky.4.3.0 (1).jar:?]
        at net.dv8tion.jda.internal.handle.SocketHandler.handle(SocketHandler.java:39) ~[DiSky.4.3.0 (1).jar:?]
        at net.dv8tion.jda.internal.requests.WebSocketClient.onDispatch(WebSocketClient.java:953) ~[DiSky.4.3.0 (1).jar:?]
        at net.dv8tion.jda.internal.requests.WebSocketClient.onEvent(WebSocketClient.java:840) ~[DiSky.4.3.0 (1).jar:?]
        at net.dv8tion.jda.internal.requests.WebSocketClient.handleEvent(WebSocketClient.java:818) ~[DiSky.4.3.0 (1).jar:?]
        at net.dv8tion.jda.internal.requests.WebSocketClient.onTextMessage(WebSocketClient.java:979) ~[DiSky.4.3.0 (1).jar:?]
        at com.neovisionaries.ws.client.ListenerManager.callOnTextMessage(ListenerManager.java:369) ~[DiSky.4.3.0 (1).jar:?]
        at com.neovisionaries.ws.client.ReadingThread.callOnTextMessage(ReadingThread.java:233) ~[DiSky.4.3.0 (1).jar:?]
        at com.neovisionaries.ws.client.ReadingThread.handleTextFrame(ReadingThread.java:969) ~[DiSky.4.3.0 (1).jar:?]
        at com.neovisionaries.ws.client.ReadingThread.handleFrame(ReadingThread.java:752) ~[DiSky.4.3.0 (1).jar:?]
        at com.neovisionaries.ws.client.ReadingThread.main(ReadingThread.java:108) ~[DiSky.4.3.0 (1).jar:?]
        at com.neovisionaries.ws.client.ReadingThread.runMain(ReadingThread.java:64) ~[DiSky.4.3.0 (1).jar:?]
        at com.neovisionaries.ws.client.WebSocketThread.run(WebSocketThread.java:45) ~[DiSky.4.3.0 (1).jar:?]

Command Localization

Command Localization, although being a build override at the moment, is documented on Discord's docs and supported by JDA as seen here.

Emoji on message Error

I'm having trouble getting this code to work.

on message receive:
	if event-user is not a discord bot:
		if message is from guild:
			if discord id of event-channel is "974911306102607872":
				react to event-message with emoji "x"

After sending a message the following error appears

[18:28:38 ERROR]: #!#!
[18:28:38 ERROR]: #!#! [Skript] Severe Error:
[18:28:38 ERROR]: #!#!
[18:28:38 ERROR]: #!#! Something went horribly wrong with Skript.
[18:28:38 ERROR]: #!#! This issue is NOT your fault! You probably can't fix it yourself, either.
[18:28:38 ERROR]: #!#! It looks like you are using some plugin(s) that alter how Skript works (addons).
[18:28:38 ERROR]: #!#! Following plugins are probably related to this error in some way:
[18:28:38 ERROR]: #!#! DiSky
[18:28:38 ERROR]: #!#! You should try disabling those plugins one by one, trying to find which one causes it.
[18:28:38 ERROR]: #!#! If the error doesn't disappear even after disabling all listed plugins, it is probably Skript issue.
[18:28:38 ERROR]: #!#! In that case, you will be given instruction on how should you report it.
[18:28:38 ERROR]: #!#! On the other hand, if the error disappears when disabling some plugin, report it to author of that plugin.
[18:28:38 ERROR]: #!#! Only if the author tells you to do so, report it to Skript's issue tracker.
[18:28:38 ERROR]: #!#!
[18:28:38 ERROR]: #!#! Stack trace:
[18:28:38 ERROR]: #!#! java.lang.IllegalArgumentException: Emoji may not be null
[18:28:38 ERROR]: #!#!     at SK - DiSky.4.3.0.jar//net.dv8tion.jda.internal.utils.Checks.notNull(Checks.java:81)
[18:28:38 ERROR]: #!#!     at SK - DiSky.4.3.0.jar//net.dv8tion.jda.internal.entities.ReceivedMessage.addReaction(ReceivedMessage.java:172)
[18:28:38 ERROR]: #!#!     at SK - DiSky.4.3.0.jar//info.itsthesky.disky.api.emojis.Emote.addReaction(Emote.java:39)
[18:28:38 ERROR]: #!#!     at SK - DiSky.4.3.0.jar//info.itsthesky.disky.elements.sections.ReactSection.walk(ReactSection.java:58)
[18:28:38 ERROR]: #!#!     at Skript.jar//ch.njol.skript.lang.EffectSectionEffect.walk(EffectSectionEffect.java:44)
[18:28:38 ERROR]: #!#!     at Skript.jar//ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:89)
[18:28:38 ERROR]: #!#!     at Skript.jar//ch.njol.skript.lang.Trigger.execute(Trigger.java:56)
[18:28:38 ERROR]: #!#!     at SK - DiSky.4.3.0.jar//info.itsthesky.disky.api.events.DiSkyEvent.lambda$null$2(DiSkyEvent.java:143)
[18:28:38 ERROR]: #!#!     at org.bukkit.craftbukkit.v1_19_R1.scheduler.CraftTask.run(CraftTask.java:101)
[18:28:38 ERROR]: #!#!     at org.bukkit.craftbukkit.v1_19_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:483)
[18:28:38 ERROR]: #!#!     at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:1492)
[18:28:38 ERROR]: #!#!     at net.minecraft.server.dedicated.DedicatedServer.b(DedicatedServer.java:446)
[18:28:38 ERROR]: #!#!     at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:1416)
[18:28:38 ERROR]: #!#!     at net.minecraft.server.MinecraftServer.v(MinecraftServer.java:1192)
[18:28:38 ERROR]: #!#!     at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:305)
[18:28:38 ERROR]: #!#!     at java.base/java.lang.Thread.run(Thread.java:833)
[18:28:38 ERROR]: #!#!
[18:28:38 ERROR]: #!#! Version Information:
[18:28:38 ERROR]: #!#!   Skript: 2.6.3 (latest)
[18:28:38 ERROR]: #!#!     Flavor: skriptlang-github
[18:28:38 ERROR]: #!#!     Date: 00:55:22.847925631
[18:28:38 ERROR]: #!#!   Bukkit: 1.19.2-R0.1-SNAPSHOT
[18:28:38 ERROR]: #!#!   Minecraft: 1.19.2
[18:28:38 ERROR]: #!#!   Java: 17.0.4 (OpenJDK 64-Bit Server VM 17.0.4+8-Ubuntu-120.04)
[18:28:38 ERROR]: #!#!   OS: Linux aarch64 5.15.0-1013-oracle
[18:28:38 ERROR]: #!#!
[18:28:38 ERROR]: #!#! Server platform: Paper
[18:28:38 ERROR]: #!#!
[18:28:38 ERROR]: #!#! Current node: null
[18:28:38 ERROR]: #!#! Current item: react to event-types.message with emoji named "joy"
[18:28:38 ERROR]: #!#!
[18:28:38 ERROR]: #!#! Thread: Server thread
[18:28:38 ERROR]: #!#!
[18:28:38 ERROR]: #!#! Language: english
[18:28:38 ERROR]: #!#! Link parse mode: DISABLED
[18:28:38 ERROR]: #!#!
[18:28:38 ERROR]: #!#! End of Error.
[18:28:38 ERROR]: #!#!

differnt error handler in discord events?

why does this code, show no erros?

Disky 4.1.0

if i put it in a normal command, it returns the normal skript error.

discord command !vrum:
    trigger:
        broadcast "triggerd"
        reply with "%arg-1% , %arh-1%"

[20:42:56 INFO]: [Skript] Reloading Skript.sk...
[20:42:56 INFO]: [Skript] Successfully reloaded Skript.sk. (116ms)

---- DiSky Debug File ----
// I hopes you're all good my friend? :c

== | OS Information

Time: 26.06.22, 20:55
Memory: 2 GB
Free Memory: 1 GB
Used Memory: 944 MB
Max Memory: 4 GB
Operating System: Windows 10

== | Server Information

Software: git-Purpur-1632 (MC: 1.18.2)
Bukkit Version: 1.18.2-R0.1-SNAPSHOT
Installed Plugins: 8
  - VoidGen v2.2.1
  - Skript v2.6.2
  - SkriptDocsGenerator v1.2.1
  - SkImage v1.8
  - DiSky v4.1.0
  - skript-yaml v1.4
  - skript-reflect v2.3
  - skript-db v1.3.4

== | DiSky Information

Version: 4.1.0
JDA Version: 5.0.0-alpha.12_86969df
Main JDA Class: net.dv8tion.jda.api.JDA
Loaded Bots: 1
  - Grammel login in as Grammel#7474

== | Modules Information

Loaded Modules: 0

== | Skript Information

Version: 2.6.2
Loaded Addons: 5
  - SkImage [plugins\SkImage-1.9.jar]
  - DiSky [plugins\DiSky.4.1.0.jar]
  - skript-yaml [plugins\skript-yaml.jar]
  - skript-reflect [plugins\skript-reflect-2.3.jar]
  - skript-db [plugins\skript-db-1.3.4.jar]


---- End of the Debug File ----

Cannot get users id

I've tried this but it didn't work:

set {_somevariable} to event-user's id

My version is 2.1 from here

Thread Archive/Lock Effect/Expression

Hello,

is there a Thread Archive/Lock Effect/Expression? Or will this be added in the next update?

https://ci.dv8tion.net/job/JDA5/javadoc/net/dv8tion/jda/api/managers/channel/concrete/ThreadChannelManager.html#setArchived(boolean)
https://ci.dv8tion.net/job/JDA5/javadoc/net/dv8tion/jda/api/managers/channel/concrete/ThreadChannelManager.html#setLocked(boolean)

https://ci.dv8tion.net/job/JDA5/javadoc/net/dv8tion/jda/api/entities/ThreadChannel.html#isArchived()
https://ci.dv8tion.net/job/JDA5/javadoc/net/dv8tion/jda/api/entities/ThreadChannel.html#isLocked()

on message receive:
    event-member is not discord bot
    set {_x} to event-threadchannel
    "%event-message%" is "check":
        broadcast "C) %{_x}% - %{_x}.isArchived()% // %{_x}.isLocked()%"
    "%event-message%" is "close":
        broadcast "1) %{_x}% - %{_x}.isArchived()% // %{_x}.isLocked()%"
        {_x}.setArchived(true)
        {_x}.setLocked(true)
        broadcast "2) %{_x}% - %{_x}.isArchived()% // %{_x}.isLocked()%"

skript wont lock/archive the thread. discord commands do not work in threads / are ignored.
the debug says, Locked and Archived is true but nothing changend in discord itself.
consolse does not show any errors. just the debug

Thanks

being able to get a users discord status

I know we have the user status change event, but is it possible to get an expression that would allow for us to get the user's status outside of that event, basically anywhere. Thanks!

[LavaPlayer]: Repeat mode doesn't work

If you are listening to a song, and you activate the repeat mode, when the music ends it will not continue with the queue and will not repeat the current song, in addition to causing the following error in the console:

[10:29:16] [JDA AudioConnection Guild: 925226203701452811 Sending Thread/ERROR]: Handler of event com.sedmelluq.discord.lavaplayer.player.event.TrackEndEvent@bc744a39 threw an exception.
java.lang.IllegalStateException: Cannot play the same instance of a track twice, use track.makeClone().
at com.sedmelluq.discord.lavaplayer.track.BaseAudioTrack.assignExecutor(BaseAudioTrack.java:44) ~[LavaPlayer.jar:?]
at com.sedmelluq.discord.lavaplayer.player.DefaultAudioPlayerManager.executeTrack(DefaultAudioPlayerManager.java:346) ~[LavaPlayer.jar:?]
at com.sedmelluq.discord.lavaplayer.player.DefaultAudioPlayer.startTrack(DefaultAudioPlayer.java:115) ~[LavaPlayer.jar:?]
at info.itsthesky.lavaplayer.AudioPlayerWrapper.startTrack(AudioPlayerWrapper.java:108) ~[LavaPlayer.jar:?]
at info.itsthesky.lavaplayer.AudioPlayerWrapper.playTracks(AudioPlayerWrapper.java:49) ~[LavaPlayer.jar:?]
at info.itsthesky.lavaplayer.AudioPlayerWrapper$Handler.onTrackEnd(AudioPlayerWrapper.java:89) ~[LavaPlayer.jar:?]
at com.sedmelluq.discord.lavaplayer.player.event.AudioEventAdapter.onEvent(AudioEventAdapter.java:74) ~[LavaPlayer.jar:?]
at com.sedmelluq.discord.lavaplayer.player.DefaultAudioPlayer.dispatchEvent(DefaultAudioPlayer.java:360) [LavaPlayer.jar:?]
at com.sedmelluq.discord.lavaplayer.player.DefaultAudioPlayer.handleTerminator(DefaultAudioPlayer.java:258) [LavaPlayer.jar:?]
at com.sedmelluq.discord.lavaplayer.player.DefaultAudioPlayer.provide(DefaultAudioPlayer.java:237) [LavaPlayer.jar:?]
at com.sedmelluq.discord.lavaplayer.player.DefaultAudioPlayer.provide(DefaultAudioPlayer.java:212) [LavaPlayer.jar:?]
at info.itsthesky.lavaplayer.AudioPlayerWrapper.provide(AudioPlayerWrapper.java:178) [LavaPlayer.jar:?]
at info.itsthesky.lavaplayer.AudioPlayerSendHandler.canProvide(AudioPlayerSendHandler.java:28) [LavaPlayer.jar:?]
at net.dv8tion.jda.internal.audio.AudioConnection$PacketProvider.getNextPacketRaw(AudioConnection.java:672) [DiSky.4.0-beta2.jar:?]
at net.dv8tion.jda.internal.audio.AudioConnection$PacketProvider.getNextPacket(AudioConnection.java:662) [DiSky.4.0-beta2.jar:?]
at net.dv8tion.jda.api.audio.factory.DefaultSendSystem.lambda$start$0(DefaultSendSystem.java:69) [DiSky.4.0-beta2.jar:?]
at net.dv8tion.jda.api.audio.factory.DefaultSendSystem$$Lambda$4339/0x00000000280d70b0.run(Unknown Source) [DiSky.4.0-beta2.jar:?]
at java.lang.Thread.run(Thread.java:853) [?:?]

Error on loading DiSky

Server version: paper 1.18.2
DiSky version: disky.4-0-beta4
Skript version: 2.6.2

No others plugins and blank server, no scripts

Starting org.bukkit.craftbukkit.Main
System Info: Java 17 (Java HotSpot(TM) 64-Bit Server VM 17.0.2+8-LTS-86) Host: Windows 10 10.0 (amd64)
Loading libraries, please wait...
[06:38:24 INFO]: Environment: authHost='https://authserver.mojang.com', accountsHost='https://api.mojang.com', sessionHost='https://sessionserver.mojang.com', servicesHost='https://api.minecraftservices.com', name='PROD'
[06:38:24 INFO]: Found new data pack file/bukkit, loading it automatically
[06:38:26 INFO]: Loaded 7 recipes
[06:38:27 INFO]: Starting minecraft server version 1.18.2
[06:38:27 INFO]: Loading properties
[06:38:27 INFO]: This server is running Paper version git-Paper-341 (MC: 1.18.2) (Implementing API version 1.18.2-R0.1-SNAPSHOT) (Git: fc1752f)
[06:38:27 INFO]: Server Ping Player Sample Count: 12
[06:38:27 INFO]: Using 4 threads for Netty based IO
[06:38:27 INFO]: Default game type: SURVIVAL
[06:38:27 INFO]: Generating keypair
[06:38:27 INFO]: Starting Minecraft server on *:25565
[06:38:27 INFO]: Using default channel type
[06:38:27 INFO]: Paper: Using Java 11 compression from Velocity.
[06:38:27 INFO]: Paper: Using Java cipher from Velocity.
[06:38:28 INFO]: [Skript] Loading Skript v2.6.2
[06:38:28 INFO]: [DiSky] Loading DiSky v4.0-beta2
[06:38:28 INFO]: Server permissions file permissions.yml is empty, ignoring it
[06:38:28 INFO]: Preparing level "world"
[06:38:36 INFO]: Preparing start region for dimension minecraft:overworld
[06:38:37 INFO]: Preparing spawn area: 0%
[06:38:37 INFO]: Preparing spawn area: 0%
[06:38:37 INFO]: Time elapsed: 618 ms
[06:38:37 INFO]: Preparing start region for dimension minecraft:the_nether
[06:38:37 INFO]: Time elapsed: 354 ms
[06:38:37 INFO]: Preparing start region for dimension minecraft:the_end
[06:38:38 INFO]: Time elapsed: 189 ms
[06:38:38 INFO]: [Skript] Enabling Skript v2.6.2
[06:38:38 INFO]: [Skript] Successfully generated the config and the example scripts.
[06:38:38 INFO]: [Skript] You're currently running the latest stable version of Skript.
[06:38:42 INFO]: [Skript] Loaded 143135 aliases in 4359ms
[06:38:43 INFO]: [Skript]  ~ created by & © Peter Güttinger aka Njol ~
[06:38:43 INFO]: [DiSky] Enabling DiSky v4.0-beta2
[06:38:43 ERROR]: Error occurred while enabling DiSky v4.0-beta2 (Is it up to date?)
java.lang.NoClassDefFoundError: de/leonhard/storage/Config
        at info.itsthesky.disky.managers.ConfigManager.init(ConfigManager.java:27) ~[disky-4.0-beta2.jar:?]
        at info.itsthesky.disky.managers.ConfigManager.<init>(ConfigManager.java:19) ~[disky-4.0-beta2.jar:?]
        at info.itsthesky.disky.DiSky.onEnable(DiSky.java:44) ~[disky-4.0-beta2.jar:?]
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:264) ~[paper-api-1.18.2-R0.1-SNAPSHOT.jar:?]
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:370) ~[paper-api-1.18.2-R0.1-SNAPSHOT.jar:?]
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:541) ~[paper-api-1.18.2-R0.1-SNAPSHOT.jar:?]
        at org.bukkit.craftbukkit.v1_18_R2.CraftServer.enablePlugin(CraftServer.java:560) ~[paper-1.18.2.jar:git-Paper-341]
        at org.bukkit.craftbukkit.v1_18_R2.CraftServer.enablePlugins(CraftServer.java:474) ~[paper-1.18.2.jar:git-Paper-341]
        at net.minecraft.server.MinecraftServer.loadWorld0(MinecraftServer.java:664) ~[paper-1.18.2.jar:git-Paper-341]
        at net.minecraft.server.MinecraftServer.loadLevel(MinecraftServer.java:431) ~[paper-1.18.2.jar:git-Paper-341]
        at net.minecraft.server.dedicated.DedicatedServer.initServer(DedicatedServer.java:316) ~[paper-1.18.2.jar:git-Paper-341]
        at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1163) ~[paper-1.18.2.jar:git-Paper-341]
        at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:315) ~[paper-1.18.2.jar:git-Paper-341]
        at java.lang.Thread.run(Thread.java:833) ~[?:?]
Caused by: java.lang.ClassNotFoundException: de.leonhard.storage.Config
        at org.bukkit.plugin.java.PluginClassLoader.loadClass0(PluginClassLoader.java:151) ~[paper-api-1.18.2-R0.1-SNAPSHOT.jar:?]
        at org.bukkit.plugin.java.PluginClassLoader.loadClass(PluginClassLoader.java:103) ~[paper-api-1.18.2-R0.1-SNAPSHOT.jar:?]
        at java.lang.ClassLoader.loadClass(ClassLoader.java:520) ~[?:?]
        ... 14 more
[06:38:43 INFO]: [DiSky] Disabling DiSky v4.0-beta2
[06:38:43 INFO]: Running delayed init tasks
[06:38:43 INFO]: [Skript] Loading variables...
[06:38:43 INFO]: [Skript] Loaded 0 variables in 0.0 seconds
[06:38:43 INFO]: [Skript] All scripts loaded without errors.
[06:38:43 INFO]: [Skript] No scripts were found, maybe you should write some ;)
[06:38:43 INFO]: [Skript] Finished loading.
[06:38:43 INFO]: Done (15.993s)! For help, type "help"
[06:38:43 INFO]: Timings Reset

Defining new bot syntax not working.

So, I am having this error where I cannot define my bot since it is saying the syntax doesn't exist.
I have been looking all over the docs and this event doesn't seem to appear anywhere except for the home page and wiki.

DiSky Version: 4.1.1

define new bot named "Colorswaps Bot":
image

Remove Slash commands effect

So basically there is no easy way of deleting (or unregistereing) Slash commands. So here are 2 syntaxes.
It will matter if the command is registered either locally or globally.

Guild syntax:
remove %slashcommand% from guild %guild%

Global (Bot) syntax:
remove %slashcommand% from bot %-bot%

It will make our lives 10,000 times easier because we have to go through pain to delete commands.
(sky if you see this ur addon is great 10/10)

On member left guild event doesn't work

Hello,
When i use the "On member left guild" event i get an error in the console, and the script doesn't work correctly. I use DiSky 4.0-beta2

My code:

on member left guild seen by "BOT":
  post message "> %event-member% left the server!" in channel with id "{@logs_discord_channel}"

The error:

[19:52:04] [Server thread/WARN]: java.lang.NoSuchMethodException: info.itsthesky.disky.elements.events.member.MemberRemoveEvent$BukkitMemberRemoveEvent.<init>(info.itsthesky.disky.elements.events.member.MemberRemoveEvent)
[19:52:04] [Server thread/WARN]:        at java.base/java.lang.Class.getConstructor0(Class.java:3517)
[19:52:04] [Server thread/WARN]:        at java.base/java.lang.Class.getDeclaredConstructor(Class.java:2691)
[19:52:04] [Server thread/WARN]:        at info.itsthesky.disky.api.events.DiSkyEvent.init(DiSkyEvent.java:97)
[19:52:04] [Server thread/WARN]:        at ch.njol.skript.lang.SkriptParser.parseEvent(SkriptParser.java:1101)
[19:52:04] [Server thread/WARN]:        at ch.njol.skript.lang.SkriptParser.parseEvent(SkriptParser.java:1067)
[19:52:04] [Server thread/WARN]:        at ch.njol.skript.ScriptLoader.loadScript(ScriptLoader.java:739)
[19:52:04] [Server thread/WARN]:        at ch.njol.skript.ScriptLoader.lambda$loadScripts$4(ScriptLoader.java:525)
[19:52:04] [Server thread/WARN]:        at ch.njol.skript.ScriptLoader.lambda$makeFuture$2(ScriptLoader.java:417)
[19:52:04] [Server thread/WARN]:        at ch.njol.skript.ScriptLoader.makeFuture(ScriptLoader.java:433)
[19:52:04] [Server thread/WARN]:        at ch.njol.skript.ScriptLoader.loadScripts(ScriptLoader.java:524)
[19:52:04] [JDA MainWS-ReadThread/INFO]: Connected to WebSocket
[19:52:04] [Server thread/WARN]:        at ch.njol.skript.ScriptLoader.reloadScript(ScriptLoader.java:1060)
[19:52:04] [Server thread/WARN]:        at ch.njol.skript.SkriptCommand.onCommand(SkriptCommand.java:171)
[19:52:04] [Server thread/WARN]:        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:45)
[19:52:04] [Server thread/WARN]:        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:145)
[19:52:04] [Server thread/WARN]:        at org.bukkit.craftbukkit.v1_16_R3.CraftServer.dispatchCommand(CraftServer.java:732)
[19:52:04] [Server thread/WARN]:        at org.bukkit.craftbukkit.v1_16_R3.CraftServer.dispatchServerCommand(CraftServer.java:717)
[19:52:04] [Server thread/WARN]:        at net.minecraft.server.v1_16_R3.DedicatedServer.handleCommandQueue(DedicatedServer.java:411)
[19:52:04] [Server thread/WARN]:        at net.minecraft.server.v1_16_R3.DedicatedServer.b(DedicatedServer.java:380)
[19:52:04] [Server thread/WARN]:        at net.minecraft.server.v1_16_R3.MinecraftServer.a(MinecraftServer.java:1071)
[19:52:04] [Server thread/WARN]:        at net.minecraft.server.v1_16_R3.MinecraftServer.w(MinecraftServer.java:910)
[19:52:04] [Server thread/WARN]:        at net.minecraft.server.v1_16_R3.MinecraftServer.lambda$0(MinecraftServer.java:256)
[19:52:04] [Server thread/WARN]:        at java.base/java.lang.Thread.run(Thread.java:831)

Error skript not loaded

[09:43:31] [Server thread/ERROR]: #!#! Something went horribly wrong with Skript. [09:43:31] [Server thread/ERROR]: #!#! This issue is NOT your fault! You probably can't fix it yourself, either. [09:43:31] [Server thread/ERROR]: #!#! It looks like you are using some plugin(s) that alter how Skript works (addons). [09:43:31] [Server thread/ERROR]: #!#! Here is full list of them: [09:43:31] [Server thread/ERROR]: #!#! DiSky v4.1.1 [09:43:31] [Server thread/ERROR]: #!#! We could not identify which of those are specially related, so this might also be Skript issue. [09:43:31] [Server thread/ERROR]: #!#! You should try disabling those plugins one by one, trying to find which one causes it. [09:43:31] [Server thread/ERROR]: #!#! If the error doesn't disappear even after disabling all listed plugins, it is probably Skript issue. [09:43:31] [Server thread/ERROR]: #!#! In that case, you will be given instruction on how should you report it. [09:43:31] [Server thread/ERROR]: #!#! On the other hand, if the error disappears when disabling some plugin, report it to author of that plugin. [09:43:31] [Server thread/ERROR]: #!#! Only if the author tells you to do so, report it to Skript's issue tracker. [09:43:31] [Server thread/ERROR]: #!#! [09:43:31] [Server thread/ERROR]: #!#! Stack trace: [09:43:31] [Server thread/ERROR]: #!#! java.lang.RuntimeException: pattern compiling exception, element class: info.itsthesky.lavaplayer.elements.effects.ConnectBot [09:43:31] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:226) [09:43:31] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:177) [09:43:31] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.Statement.parse(Statement.java:60) [09:43:31] [Server thread/ERROR]: #!#! at ch.njol.skript.ScriptLoader.loadItems(ScriptLoader.java:1114) [09:43:31] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.Section.loadCode(Section.java:90) [09:43:31] [Server thread/ERROR]: #!#! at ch.njol.skript.sections.SecConditional.init(SecConditional.java:118) [09:43:31] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.Section.init(Section.java:69) [09:43:31] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:255) [09:43:31] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:177) [09:43:31] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.Section.lambda$parse$0(Section.java:157) [09:43:31] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.Section$SectionContext.modify(Section.java:190) [09:43:31] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.Section.parse(Section.java:156) [09:43:31] [Server thread/ERROR]: #!#! at ch.njol.skript.ScriptLoader.loadItems(ScriptLoader.java:1128) [09:43:31] [Server thread/ERROR]: #!#! at ch.njol.skript.ScriptLoader.loadScript(ScriptLoader.java:753) [09:43:31] [Server thread/ERROR]: #!#! at ch.njol.skript.ScriptLoader.lambda$loadScripts$4(ScriptLoader.java:526) [09:43:31] [Server thread/ERROR]: #!#! at ch.njol.skript.ScriptLoader.lambda$makeFuture$2(ScriptLoader.java:418) [09:43:31] [Server thread/ERROR]: #!#! at ch.njol.skript.ScriptLoader.makeFuture(ScriptLoader.java:434) [09:43:31] [Server thread/ERROR]: #!#! at ch.njol.skript.ScriptLoader.loadScripts(ScriptLoader.java:525) [09:43:31] [Server thread/ERROR]: #!#! at ch.njol.skript.ScriptLoader.loadScripts(ScriptLoader.java:469) [09:43:31] [Server thread/ERROR]: #!#! at ch.njol.skript.Skript$1.run(Skript.java:786) [09:43:31] [Server thread/ERROR]: #!#! at org.bukkit.craftbukkit.v1_17_R1.scheduler.CraftTask.run(CraftTask.java:82) [09:43:31] [Server thread/ERROR]: #!#! at org.bukkit.craftbukkit.v1_17_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:415) [09:43:31] [Server thread/ERROR]: #!#! at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:1269) [09:43:31] [Server thread/ERROR]: #!#! at net.minecraft.server.dedicated.DedicatedServer.b(DedicatedServer.java:438) [09:43:31] [Server thread/ERROR]: #!#! at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:1217) [09:43:31] [Server thread/ERROR]: #!#! at net.minecraft.server.MinecraftServer.x(MinecraftServer.java:1050) [09:43:31] [Server thread/ERROR]: #!#! at net.minecraft.server.MinecraftServer.lambda$0(MinecraftServer.java:305) [09:43:31] [Server thread/ERROR]: #!#! at java.base/java.lang.Thread.run(Thread.java:833) [09:43:31] [Server thread/ERROR]: #!#! Caused by: ch.njol.skript.patterns.MalformedPatternException: caught exception while compiling pattern [pattern: connect [the] [bot] (in|to) [to] [the] [audio] [channel] %audiochannel%] [09:43:31] [Server thread/ERROR]: #!#! at ch.njol.skript.patterns.PatternCompiler.compile(PatternCompiler.java:54) [09:43:31] [Server thread/ERROR]: #!#! at java.base/java.util.HashMap.computeIfAbsent(HashMap.java:1220) [09:43:31] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.parse_i(SkriptParser.java:1254) [09:43:31] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:224) [09:43:31] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:177) [09:43:31] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.Statement.parse(Statement.java:60) [09:43:31] [Server thread/ERROR]: #!#! at ch.njol.skript.ScriptLoader.loadItems(ScriptLoader.java:1114) [09:43:31] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.Section.loadCode(Section.java:90) [09:43:31] [Server thread/ERROR]: #!#! at ch.njol.skript.sections.SecConditional.init(SecConditional.java:118) [09:43:31] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.Section.init(Section.java:69) [09:43:31] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:255) [09:43:31] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:177) [09:43:31] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.Section.lambda$parse$0(Section.java:157) [09:43:31] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.Section$SectionContext.modify(Section.java:190) [09:43:31] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.Section.parse(Section.java:156) [09:43:31] [Server thread/ERROR]: #!#! at ch.njol.skript.ScriptLoader.loadItems(ScriptLoader.java:1128) [09:43:31] [Server thread/ERROR]: #!#! at ch.njol.skript.ScriptLoader.loadScript(ScriptLoader.java:753) [09:43:31] [Server thread/ERROR]: #!#! at ch.njol.skript.ScriptLoader.lambda$loadScripts$4(ScriptLoader.java:526) [09:43:31] [Server thread/ERROR]: #!#! at ch.njol.skript.ScriptLoader.lambda$makeFuture$2(ScriptLoader.java:418) [09:43:31] [Server thread/ERROR]: #!#! at ch.njol.skript.ScriptLoader.makeFuture(ScriptLoader.java:434) [09:43:31] [Server thread/ERROR]: #!#! at ch.njol.skript.ScriptLoader.loadScripts(ScriptLoader.java:525) [09:43:31] [Server thread/ERROR]: #!#! at ch.njol.skript.ScriptLoader.loadScripts(ScriptLoader.java:469) [09:43:31] [Server thread/ERROR]: #!#! at ch.njol.skript.Skript$1.run(Skript.java:786) [09:43:31] [Server thread/ERROR]: #!#! at org.bukkit.craftbukkit.v1_17_R1.scheduler.CraftTask.run(CraftTask.java:82) [09:43:31] [Server thread/ERROR]: #!#! at org.bukkit.craftbukkit.v1_17_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:415) [09:43:31] [Server thread/ERROR]: #!#! at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:1269) [09:43:31] [Server thread/ERROR]: #!#! at net.minecraft.server.dedicated.DedicatedServer.b(DedicatedServer.java:438) [09:43:31] [Server thread/ERROR]: #!#! at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:1217) [09:43:31] [Server thread/ERROR]: #!#! at net.minecraft.server.MinecraftServer.x(MinecraftServer.java:1050) [09:43:31] [Server thread/ERROR]: #!#! at net.minecraft.server.MinecraftServer.lambda$0(MinecraftServer.java:305) [09:43:31] [Server thread/ERROR]: #!#! at java.base/java.lang.Thread.run(Thread.java:833) [09:43:31] [Server thread/ERROR]: #!#! Caused by: ch.njol.skript.SkriptAPIException: No class info found for audiochannel [09:43:31] [Server thread/ERROR]: #!#! at ch.njol.skript.registrations.Classes.getClassInfo(Classes.java:264) [09:43:31] [Server thread/ERROR]: #!#! at ch.njol.skript.patterns.TypePatternElement.fromString(TypePatternElement.java:92) [09:43:31] [Server thread/ERROR]: #!#! at ch.njol.skript.patterns.PatternCompiler.compile(PatternCompiler.java:138) [09:43:31] [Server thread/ERROR]: #!#! at ch.njol.skript.patterns.PatternCompiler.compile(PatternCompiler.java:49) [09:43:31] [Server thread/ERROR]: #!#! at java.base/java.util.HashMap.computeIfAbsent(HashMap.java:1220) [09:43:31] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.parse_i(SkriptParser.java:1254) [09:43:31] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:224) [09:43:31] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:177) [09:43:31] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.Statement.parse(Statement.java:60) [09:43:31] [Server thread/ERROR]: #!#! at ch.njol.skript.ScriptLoader.loadItems(ScriptLoader.java:1114) [09:43:31] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.Section.loadCode(Section.java:90) [09:43:31] [Server thread/ERROR]: #!#! at ch.njol.skript.sections.SecConditional.init(SecConditional.java:118) [09:43:31] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.Section.init(Section.java:69) [09:43:31] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:255) [09:43:31] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:177) [09:43:31] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.Section.lambda$parse$0(Section.java:157) [09:43:31] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.Section$SectionContext.modify(Section.java:190) [09:43:31] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.Section.parse(Section.java:156) [09:43:31] [Server thread/ERROR]: #!#! at ch.njol.skript.ScriptLoader.loadItems(ScriptLoader.java:1128) [09:43:31] [Server thread/ERROR]: #!#! at ch.njol.skript.ScriptLoader.loadScript(ScriptLoader.java:753) [09:43:31] [Server thread/ERROR]: #!#! at ch.njol.skript.ScriptLoader.lambda$loadScripts$4(ScriptLoader.java:526) [09:43:31] [Server thread/ERROR]: #!#! at ch.njol.skript.ScriptLoader.lambda$makeFuture$2(ScriptLoader.java:418) [09:43:31] [Server thread/ERROR]: #!#! at ch.njol.skript.ScriptLoader.makeFuture(ScriptLoader.java:434) [09:43:31] [Server thread/ERROR]: #!#! at ch.njol.skript.ScriptLoader.loadScripts(ScriptLoader.java:525) [09:43:31] [Server thread/ERROR]: #!#! at ch.njol.skript.ScriptLoader.loadScripts(ScriptLoader.java:469) [09:43:31] [Server thread/ERROR]: #!#! at ch.njol.skript.Skript$1.run(Skript.java:786) [09:43:31] [Server thread/ERROR]: #!#! at org.bukkit.craftbukkit.v1_17_R1.scheduler.CraftTask.run(CraftTask.java:82) [09:43:31] [Server thread/ERROR]: #!#! at org.bukkit.craftbukkit.v1_17_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:415) [09:43:31] [Server thread/ERROR]: #!#! at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:1269) [09:43:31] [Server thread/ERROR]: #!#! at net.minecraft.server.dedicated.DedicatedServer.b(DedicatedServer.java:438) [09:43:31] [Server thread/ERROR]: #!#! at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:1217) [09:43:31] [Server thread/ERROR]: #!#! at net.minecraft.server.MinecraftServer.x(MinecraftServer.java:1050) [09:43:31] [Server thread/ERROR]: #!#! at net.minecraft.server.MinecraftServer.lambda$0(MinecraftServer.java:305) [09:43:31] [Server thread/ERROR]: #!#! at java.base/java.lang.Thread.run(Thread.java:833) [09:43:31] [Server thread/ERROR]: #!#! [09:43:31] [Server thread/ERROR]: #!#! Version Information: [09:43:31] [Server thread/ERROR]: #!#! Skript: 2.6.3 (latest) [09:43:31] [Server thread/ERROR]: #!#! Flavor: skriptlang-github [09:43:31] [Server thread/ERROR]: #!#! Date: 00:55:22.847925631 [09:43:31] [Server thread/ERROR]: #!#! Bukkit: 1.17.1-R0.1-SNAPSHOT [09:43:31] [Server thread/ERROR]: #!#! Minecraft: 1.17.1 [09:43:31] [Server thread/ERROR]: #!#! Java: 17.0.2 (OpenJDK 64-Bit Server VM 17.0.2+8) [09:43:31] [Server thread/ERROR]: #!#! OS: Windows 11 amd64 10.0 [09:43:31] [Server thread/ERROR]: #!#! [09:43:31] [Server thread/ERROR]: #!#! Server platform: Spigot [09:43:31] [Server thread/ERROR]: #!#! [09:43:31] [Server thread/ERROR]: #!#! Current node: make player run cmd "cp template" as op (swiftmenu.sk, line 4) [09:43:31] [Server thread/ERROR]: #!#! Current item: null [09:43:31] [Server thread/ERROR]: #!#! [09:43:31] [Server thread/ERROR]: #!#! Thread: Server thread [09:43:31] [Server thread/ERROR]: #!#! [09:43:31] [Server thread/ERROR]: #!#! Language: japanese [09:43:31] [Server thread/ERROR]: #!#! Link parse mode: DISABLED [09:43:31] [Server thread/ERROR]: #!#! [09:43:31] [Server thread/ERROR]: #!#! End of Error.

DiSky glitching out

So I decided to upgrade to the new DiSky 4.0.1, and now DiSky is not working. The plugin is enabled, I even tried downgrading back to beta 4, but Skript thinks DiSky doesn't exist even though it's enabled and everything.
image
image

The loading messages:

[15:40:43] [Server thread/INFO]: [DiSky] Enabling DiSky v4.0-beta4
[15:40:44] [Server thread/INFO]: [DiSky] Saving emoji's file ...
[15:40:44] [Server thread/INFO]: [DiSky] Success!
[15:40:44] [Server thread/INFO]: [DiSky] Loading emoji library ...
[15:40:44] [Server thread/INFO]: [DiSky] Loading local emojis
[15:40:44] [Server thread/INFO]: [DiSky] Loaded 1838 local emojis
[15:40:44] [Server thread/INFO]: [DiSky] Success!

The errors:

[15:40:47] [Server thread/ERROR]: [Skript] Line 29: (1_cmdhandler.sk)
    Can't understand this condition/effect: set {_nslash} to new slash command named "%{_n}%" with desc {_d}
    Line: set {_nslash} to new slash command named "%{_n}%" with desc {_d}
 
[15:40:47] [Server thread/ERROR]: [Skript] Line 37: (1_cmdhandler.sk)
    Can't understand this expression: 'required string option named "%{_n}%" with description "%{_d}%"'
    Line: return required string option named "%{_n}%" with description "%{_d}%"
 
[15:40:47] [Server thread/ERROR]: [Skript] Line 40: (1_cmdhandler.sk)
    Can't understand this expression: 'string option named "%{_n}%" with description "%{_d}%"'
    Line: return string option named "%{_n}%" with description "%{_d}%"
 
[15:40:47] [Server thread/ERROR]: [Skript] Line 44: (1_cmdhandler.sk)
    Can't understand this expression: 'required boolean option named "%{_n}%" with description "%{_d}%"'
    Line: return required boolean option named "%{_n}%" with description "%{_d}%"
 
[15:40:47] [Server thread/ERROR]: [Skript] Line 47: (1_cmdhandler.sk)
    Can't understand this expression: 'boolean option named "%{_n}%" with description "%{_d}%"'
    Line: return boolean option named "%{_n}%" with description "%{_d}%"
 
[15:40:47] [Server thread/ERROR]: [Skript] Line 51: (1_cmdhandler.sk)
    Can't understand this expression: 'required user option named "%{_n}%" with description "%{_d}%"'
    Line: return required user option named "%{_n}%" with description "%{_d}%"
 
[15:40:47] [Server thread/ERROR]: [Skript] Line 54: (1_cmdhandler.sk)
    Can't understand this expression: 'user option named "%{_n}%" with description "%{_d}%"'
    Line: return user option named "%{_n}%" with description "%{_d}%"
 
[15:40:47] [Server thread/ERROR]: [Skript] Line 58: (1_cmdhandler.sk)
    Can't understand this expression: 'required integer option named "%{_n}%" with description "%{_d}%"'
    Line: return required integer option named "%{_n}%" with description "%{_d}%"
 
[15:40:47] [Server thread/ERROR]: [Skript] Line 61: (1_cmdhandler.sk)
    Can't understand this expression: 'integer option named "%{_n}%" with description "%{_d}%"'
    Line: return integer option named "%{_n}%" with description "%{_d}%"
 
[15:40:47] [Server thread/ERROR]: [Skript] Line 65: (1_cmdhandler.sk)
    Can't understand this expression: 'required number option named "%{_n}%" with description "%{_d}%"'
    Line: return required number option named "%{_n}%" with description "%{_d}%"
 
[15:40:47] [Server thread/ERROR]: [Skript] Line 68: (1_cmdhandler.sk)
    Can't understand this expression: 'number option named "%{_n}%" with description "%{_d}%"'
    Line: return number option named "%{_n}%" with description "%{_d}%"
 
[15:40:48] [Server thread/ERROR]: [Skript] Line 72: (1_cmdhandler.sk)
    Can't understand this expression: 'required channel option named "%{_n}%" with description "%{_d}%"'
    Line: return required channel option named "%{_n}%" with description "%{_d}%"
 
[15:40:48] [Server thread/ERROR]: [Skript] Line 75: (1_cmdhandler.sk)
    Can't understand this expression: 'channel option named "%{_n}%" with description "%{_d}%"'
    Line: return channel option named "%{_n}%" with description "%{_d}%"
 
[15:40:48] [Server thread/ERROR]: [Skript] Line 79: (1_cmdhandler.sk)
    Can't understand this expression: 'required role option named "%{_n}%" with description "%{_d}%"'
    Line: return required role option named "%{_n}%" with description "%{_d}%"
 
[15:40:48] [Server thread/ERROR]: [Skript] Line 82: (1_cmdhandler.sk)
    Can't understand this expression: 'role option named "%{_n}%" with description "%{_d}%"'
    Line: return role option named "%{_n}%" with description "%{_d}%"
 
[15:40:48] [Server thread/ERROR]: [Skript] Line 87: (1_cmdhandler.sk)
    Can't understand this condition/effect: add required string option named "%{_n}%" with description "%{_d}%" to options of {_v}
    Line: add required string option named "%{_n}%" with description "%{_d}%" to options of {_v}
 
[15:40:48] [Server thread/ERROR]: [Skript] Line 90: (1_cmdhandler.sk)
    Can't understand this condition/effect: add string option named "%{_n}%" with description "%{_d}%" to options of {_v}
    Line: add string option named "%{_n}%" with description "%{_d}%" to options of {_v}
 
[15:40:48] [Server thread/ERROR]: [Skript] Line 94: (1_cmdhandler.sk)
    Can't understand this condition/effect: add required boolean option named "%{_n}%" with description "%{_d}%" to options of {_v}
    Line: add required boolean option named "%{_n}%" with description "%{_d}%" to options of {_v}
 
[15:40:48] [Server thread/ERROR]: [Skript] Line 97: (1_cmdhandler.sk)
    Can't understand this condition/effect: add boolean option named "%{_n}%" with description "%{_d}%" to options of {_v}
    Line: add boolean option named "%{_n}%" with description "%{_d}%" to options of {_v}
 
[15:40:48] [Server thread/ERROR]: [Skript] Line 101: (1_cmdhandler.sk)
    Can't understand this condition/effect: add required user option named "%{_n}%" with description "%{_d}%" to options of {_v}
    Line: add required user option named "%{_n}%" with description "%{_d}%" to options of {_v}
 
[15:40:48] [Server thread/ERROR]: [Skript] Line 104: (1_cmdhandler.sk)
    Can't understand this condition/effect: add user option named "%{_n}%" with description "%{_d}%" to options of {_v}
    Line: add user option named "%{_n}%" with description "%{_d}%" to options of {_v}
 
[15:40:48] [Server thread/ERROR]: [Skript] Line 108: (1_cmdhandler.sk)
    Can't understand this condition/effect: add required integer option named "%{_n}%" with description "%{_d}%" to options of {_v}
    Line: add required integer option named "%{_n}%" with description "%{_d}%" to options of {_v}
 
[15:40:48] [Server thread/ERROR]: [Skript] Line 111: (1_cmdhandler.sk)
    Can't understand this condition/effect: add integer option named "%{_n}%" with description "%{_d}%" to options of {_v}
    Line: add integer option named "%{_n}%" with description "%{_d}%" to options of {_v}
 
[15:40:48] [Server thread/ERROR]: [Skript] Line 115: (1_cmdhandler.sk)
    Can't understand this condition/effect: add required number option named "%{_n}%" with description "%{_d}%" to options of {_v}
    Line: add required number option named "%{_n}%" with description "%{_d}%" to options of {_v}
 
[15:40:48] [Server thread/ERROR]: [Skript] Line 118: (1_cmdhandler.sk)
    Can't understand this condition/effect: add number option named "%{_n}%" with description "%{_d}%" to options of {_v}
    Line: add number option named "%{_n}%" with description "%{_d}%" to options of {_v}
 
[15:40:48] [Server thread/ERROR]: [Skript] Line 122: (1_cmdhandler.sk)
    Can't understand this condition/effect: add required channel option named "%{_n}%" with description "%{_d}%" to options of {_v}
    Line: add required channel option named "%{_n}%" with description "%{_d}%" to options of {_v}
 
[15:40:48] [Server thread/ERROR]: [Skript] Line 125: (1_cmdhandler.sk)
    Can't understand this condition/effect: add channel option named "%{_n}%" with description "%{_d}%" to options of {_v}
    Line: add channel option named "%{_n}%" with description "%{_d}%" to options of {_v}
 
[15:40:49] [Server thread/ERROR]: [Skript] Line 129: (1_cmdhandler.sk)
    Can't understand this condition/effect: add required role option named "%{_n}%" with description "%{_d}%" to options of {_v}
    Line: add required role option named "%{_n}%" with description "%{_d}%" to options of {_v}
 
[15:40:49] [Server thread/ERROR]: [Skript] Line 132: (1_cmdhandler.sk)
    Can't understand this condition/effect: add role option named "%{_n}%" with description "%{_d}%" to options of {_v}
    Line: add role option named "%{_n}%" with description "%{_d}%" to options of {_v}
 
[15:40:49] [Server thread/ERROR]: [Skript] Line 136: (1_cmdhandler.sk)
    Can't understand this condition/effect: add required mentionable option named "%{_n}%" with description "%{_d}%" to options of {_v}
    Line: add required mentionable option named "%{_n}%" with description "%{_d}%" to options of {_v}
 
[15:40:49] [Server thread/ERROR]: [Skript] Line 139: (1_cmdhandler.sk)
    Can't understand this condition/effect: add mentionable option named "%{_n}%" with description "%{_d}%" to options of {_v}
    Line: add mentionable option named "%{_n}%" with description "%{_d}%" to options of {_v}
 
[15:40:49] [Server thread/ERROR]: [Skript] Line 144: (1_cmdhandler.sk)
    Can't understand this condition/effect: set {_r} to new sub command named {_n} with description {_d}
    Line: set {_r} to new sub command named {_n} with description {_d}
 
[15:40:49] [Server thread/ERROR]: [Skript] Line 148: (1_cmdhandler.sk)
    Can't understand this condition/effect: add {_s} to sub commands of {_c}
    Line: add {_s} to sub commands of {_c}
 
[15:40:49] [Server thread/ERROR]: [Skript] Line 157: (1_cmdhandler.sk)
    Can't understand this condition/effect: update command {slashcmd.Local::*} locally in guild with id "932659866110160936"
    Line: update command {slashcmd.Local::*} locally in guild with id "932659866110160936"
 
[15:40:49] [Server thread/ERROR]: [Skript] Line 164: (1_cmdhandler.sk)
    Can't understand this condition/effect: update command {slashcmd.LocalGM::*} locally in guild with id "718519105644396694"
    Line: update command {slashcmd.LocalGM::*} locally in guild with id "718519105644396694"
 
[15:40:49] [Server thread/ERROR]: [Skript] Line 171: (1_cmdhandler.sk)
    Can't understand this condition/effect: update command {slashcmd.Global::*} globally in bot "DisTune"
    Line: update command {slashcmd.Global::*} globally in bot {@bot}
 
[15:40:49] [Server thread/ERROR]: [Skript] Line 174: (1_cmdhandler.sk)
    Can't understand this condition/effect: add new choice named "%{_n}%" with value "%{_d}%" to choices of {_v}
    Line: add new choice named "%{_n}%" with value "%{_d}%" to choices of {_v}
 
[15:40:49] [Server thread/ERROR]: [Skript] Line 181: (1_cmdhandler.sk)
    Can't understand this effect: add new primary button with id {_id} named {_n} to components of {_r}
    Line: add new primary button with id {_id} named {_n} to components of {_r} if {_e} = "none"
 
[15:40:49] [Server thread/ERROR]: [Skript] Line 182: (1_cmdhandler.sk)
    Can't understand this effect: add new primary button with id {_id} named {_n} with emoji {_e} to components of {_r}
    Line: add new primary button with id {_id} named {_n} with emoji {_e} to components of {_r} if {_e} != "none"
 
[15:40:49] [Server thread/ERROR]: [Skript] Line 185: (1_cmdhandler.sk)
    Can't understand this effect: add new disabled primary button with id {_id} named {_n} to components of {_r}
    Line: add new disabled primary button with id {_id} named {_n} to components of {_r} if {_e} = "none"
 
[15:40:49] [Server thread/ERROR]: [Skript] Line 186: (1_cmdhandler.sk)
    Can't understand this effect: add new disabled primary button with id {_id} named {_n} with emoji {_e} to components of {_r}
    Line: add new disabled primary button with id {_id} named {_n} with emoji {_e} to components of {_r} if {_e} != "none"
 
[15:40:50] [Server thread/ERROR]: [Skript] Line 190: (1_cmdhandler.sk)
    Can't understand this effect: add new secondary button with id {_id} named {_n} to components of {_r}
    Line: add new secondary button with id {_id} named {_n} to components of {_r} if {_e} = "none"
 
[15:40:50] [Server thread/ERROR]: [Skript] Line 191: (1_cmdhandler.sk)
    Can't understand this effect: add new secondary button with id {_id} named {_n} with emoji {_e} to components of {_r}
    Line: add new secondary button with id {_id} named {_n} with emoji {_e} to components of {_r} if {_e} != "none"
 
[15:40:50] [Server thread/ERROR]: [Skript] Line 194: (1_cmdhandler.sk)
    Can't understand this effect: add new disabled secondary button with id {_id} named {_n} to components of {_r}
    Line: add new disabled secondary button with id {_id} named {_n} to components of {_r} if {_e} = "none"
 
[15:40:50] [Server thread/ERROR]: [Skript] Line 195: (1_cmdhandler.sk)
    Can't understand this effect: add new disabled secondary button with id {_id} named {_n} with emoji {_e} to components of {_r}
    Line: add new disabled secondary button with id {_id} named {_n} with emoji {_e} to components of {_r} if {_e} != "none"
 
[15:40:50] [Server thread/ERROR]: [Skript] Line 199: (1_cmdhandler.sk)
    Can't understand this effect: add new success button with id {_id} named {_n} to components of {_r}
    Line: add new success button with id {_id} named {_n} to components of {_r} if {_e} = "none"
 
[15:40:50] [Server thread/ERROR]: [Skript] Line 200: (1_cmdhandler.sk)
    Can't understand this effect: add new success button with id {_id} named {_n} with emoji {_e} to components of {_r}
    Line: add new success button with id {_id} named {_n} with emoji {_e} to components of {_r} if {_e} != "none"
 
[15:40:50] [Server thread/ERROR]: [Skript] Line 203: (1_cmdhandler.sk)
    Can't understand this effect: add new disabled success button with id {_id} named {_n} to components of {_r}
    Line: add new disabled success button with id {_id} named {_n} to components of {_r} if {_e} = "none"
 
[15:40:50] [Server thread/ERROR]: [Skript] Line 204: (1_cmdhandler.sk)
    Can't understand this effect: add new disabled success button with id {_id} named {_n} with emoji {_e} to components of {_r}
    Line: add new disabled success button with id {_id} named {_n} with emoji {_e} to components of {_r} if {_e} != "none"
 
[15:40:51] [Server thread/ERROR]: [Skript] Line 208: (1_cmdhandler.sk)
    Can't understand this effect: add new danger button with id {_id} named {_n} to components of {_r}
    Line: add new danger button with id {_id} named {_n} to components of {_r} if {_e} = "none"
 
[15:40:51] [Server thread/ERROR]: [Skript] Line 209: (1_cmdhandler.sk)
    Can't understand this effect: add new danger button with id {_id} named {_n} with emoji {_e} to components of {_r}
    Line: add new danger button with id {_id} named {_n} with emoji {_e} to components of {_r} if {_e} != "none"
 
[15:40:51] [Server thread/ERROR]: [Skript] Line 212: (1_cmdhandler.sk)
    Can't understand this effect: add new disabled danger button with id {_id} named {_n} to components of {_r}
    Line: add new disabled danger button with id {_id} named {_n} to components of {_r} if {_e} = "none"
 
[15:40:51] [Server thread/ERROR]: [Skript] Line 213: (1_cmdhandler.sk)
    Can't understand this effect: add new disabled danger button with id {_id} named {_n} with emoji {_e} to components of {_r}
    Line: add new disabled danger button with id {_id} named {_n} with emoji {_e} to components of {_r} if {_e} != "none"
 
[15:40:51] [Server thread/ERROR]: [Skript] Line 217: (1_cmdhandler.sk)
    Can't understand this effect: add new link button with url {_id} named {_n} to components of {_r}
    Line: add new link button with url {_id} named {_n} to components of {_r} if {_e} = "none"
 
[15:40:51] [Server thread/ERROR]: [Skript] Line 220: (1_cmdhandler.sk)
    Can't understand this effect: add new disabled link button with url {_id} named {_n} to components of {_r}
    Line: add new disabled link button with url {_id} named {_n} to components of {_r} if {_e} = "none"
 
[15:40:51] [Server thread/ERROR]: [Skript] Line 223: (1_cmdhandler.sk)
    Can't understand this condition/effect: set {_g} to new command group named "%{_n}%" with description "%{_d}%"
    Line: set {_g} to new command group named "%{_n}%" with description "%{_d}%"
 
[15:40:51] [Server thread/ERROR]: [Skript] Line 234: (1_cmdhandler.sk)
    Can't understand this condition/effect: update command {usercmd.Local::*} locally in guild with id "932659866110160936"
    Line: update command {usercmd.Local::*} locally in guild with id "932659866110160936"
 
[15:40:51] [Server thread/ERROR]: [Skript] Line 240: (1_cmdhandler.sk)
    Can't understand this condition/effect: update command {usercmd.Global::*} globally in bot "DisTune"
    Line: update command {usercmd.Global::*} globally in bot {@bot}
 
[15:40:51] [Server thread/ERROR]: [Skript] Line 243: (1_cmdhandler.sk)
    Can't understand this condition/effect: set {_nuser} to new user command named "%{_n}%"
    Line: set {_nuser} to new user command named "%{_n}%"
 
[15:40:51] [Server thread/ERROR]: [Skript] Line 248: (1_cmdhandler.sk)
    Can't understand this condition/effect: set {_dropdownROW} to new components row
    Line: set {_dropdownROW} to new components row
 
[15:40:51] [Server thread/ERROR]: [Skript] Line 249: (1_cmdhandler.sk)
    Can't understand this condition/effect: set {_dropdown} to new dropdown with id expr-1
    Line: set {_dropdown} to new dropdown with id expr-1
 
[15:40:51] [Server thread/ERROR]: [Skript] Line 250: (1_cmdhandler.sk)
    Can't understand this condition/effect: set min range of {_dropdown} to expr-3
    Line: set min range of {_dropdown} to expr-3
 
[15:40:51] [Server thread/ERROR]: [Skript] Line 251: (1_cmdhandler.sk)
    Can't understand this condition/effect: set max range of {_dropdown} to expr-4
    Line: set max range of {_dropdown} to expr-4
 
[15:40:51] [Server thread/ERROR]: [Skript] Line 252: (1_cmdhandler.sk)
    Can't loop com.btk5h.skriptmirror.skript.custom.ExprExpression@6ac6088f because it's only a single value
    Line: loop expr-2:
 
[15:40:51] [Server thread/ERROR]: [Skript] Line 262: (1_cmdhandler.sk)
    Can't understand this condition/effect: add {_dropdown} to components of {_dropdownROW}
    Line: add {_dropdown} to components of {_dropdownROW}
 
[15:40:51] [Server thread/ERROR]: [Skript] Line 24: (main.sk)
    Can't understand this event: 'define new bot named {@bot}'
    Line: define new bot named {@bot}:
 
[15:40:51] [Server thread/ERROR]: [Skript] Line 33: (main.sk)
    Can't understand this condition/effect: set presence of bot "DisTune" to playing "with %size of all guilds of bot "DisTune"% servers! | /help"
    Line: set presence of bot {@bot} to playing "with %size of all guilds of bot "DisTune"% servers! | /help"
 
[15:40:51] [Server thread/ERROR]: [Skript] Line 35: (main.sk)
    Can't understand this event: 'on bot join guild'
    Line: on bot join guild:
 
[15:40:51] [Server thread/ERROR]: [Skript] Line 40: (main.sk)
    Can't understand this condition/effect: set {_c} to new slash command named "createfile" with desc "Admin command."
    Line: set {_c} to new slash command named "createfile" with desc "Admin command."
 
[15:40:52] [Server thread/ERROR]: [Skript] Line 41: (main.sk)
    Can't understand this condition/effect: add required string option named "filename" with desc "The name of the file" to options of {_c}
    Line: add required string option named "filename" with desc "The name of the file" to options of {_c}
 
[15:40:52] [Server thread/ERROR]: [Skript] Line 45: (main.sk)
    Can't understand this event: 'on slash command'
    Line: on slash command:
 
[15:40:52] [Server thread/ERROR]: [Skript] Line 82: (main.sk)
    Can't understand this event: 'on slash command'
    Line: on slash command:
 
[15:40:52] [Server thread/ERROR]: [Skript] Line 96: (main.sk)
    Can't understand this condition/effect: update command {slashcmd.Local::*} locally in guild with id "932659866110160936"
    Line: update command {slashcmd.Local::*} locally in guild with id "932659866110160936"
 
[15:40:52] [Server thread/ERROR]: [Skript] Line 97: (main.sk)
    Can't understand this condition/effect: update command {slashcmd.Global::*} globally in bot "DisTune"
    Line: update command {slashcmd.Global::*} globally in bot {@bot}
 
[15:40:52] [Server thread/ERROR]: [Skript] Line 126: (main.sk)
    Can't understand this event: 'on slash command'
    Line: on slash command:
 
[15:40:52] [Server thread/ERROR]: [Skript] Line 135: (main.sk)
    Can't understand this event: 'on slash command'
    Line: on slash command:
 
[15:40:52] [Server thread/ERROR]: [Skript] Line 149: (main.sk)
    Can't understand this event: 'on slash command'
    Line: on slash command:
 
[15:40:52] [Server thread/ERROR]: [Skript] Line 155: (main.sk)
    Can't understand this event: 'on message receive'
    Line: on message receive:
 
[15:40:52] [Server thread/ERROR]: [Skript] Line 175: (main.sk)
    Can't understand this event: 'on slash command'
    Line: on slash command:
 
[15:40:52] [Server thread/ERROR]: [Skript] Line 193: (main.sk)
    Can't understand this event: 'on slash command'
    Line: on slash command:
 
[15:40:52] [Server thread/ERROR]: [Skript] Line 207: (main.sk)
    Can't understand this event: 'on slash command'
    Line: on slash command:
 
[15:40:52] [Server thread/WARN]: [Skript] Line 16: (normalizedtime.sk)
    Starting a variable's name with an expression is discouraged ({_%loop-value%}). You could prefix it with the script's name: {normalizedtime._%loop-value%}
    Line: {_%loop-value%} < 10:
 
[15:40:52] [Server thread/WARN]: [Skript] Line 17: (normalizedtime.sk)
    Starting a variable's name with an expression is discouraged ({_%loop-value%}). You could prefix it with the script's name: {normalizedtime._%loop-value%}
    Line: set {_%loop-value%} to "0%{_%loop-value%}%"
 
[15:40:52] [Server thread/WARN]: [Skript] Line 17: (normalizedtime.sk)
    Starting a variable's name with an expression is discouraged ({_%loop-value%}). You could prefix it with the script's name: {normalizedtime._%loop-value%}
    Line: set {_%loop-value%} to "0%{_%loop-value%}%"
 
[15:40:52] [Server thread/WARN]: [Skript] Line 18: (normalizedtime.sk)
    Starting a variable's name with an expression is discouraged ({_%loop-value%}). You could prefix it with the script's name: {normalizedtime._%loop-value%}
    Line: {_%loop-value%} is not set:
 
[15:40:52] [Server thread/WARN]: [Skript] Line 19: (normalizedtime.sk)
    Starting a variable's name with an expression is discouraged ({_%loop-value%}). You could prefix it with the script's name: {normalizedtime._%loop-value%}
    Line: set {_%loop-value%} to "00"
 
[15:40:52] [Server thread/WARN]: [Skript] Line 20: (normalizedtime.sk)
    Starting a variable's name with an expression is discouraged ({_%loop-value%}). You could prefix it with the script's name: {normalizedtime._%loop-value%}
    Line: {_%loop-value%} is 0:
 
[15:40:52] [Server thread/WARN]: [Skript] Line 21: (normalizedtime.sk)
    Starting a variable's name with an expression is discouraged ({_%loop-value%}). You could prefix it with the script's name: {normalizedtime._%loop-value%}
    Line: set {_%loop-value%} to "00"
 
[15:40:52] [Server thread/WARN]: [Skript] Line 22: (normalizedtime.sk)
    Starting a variable's name with an expression is discouraged ({_%loop-value%}). You could prefix it with the script's name: {normalizedtime._%loop-value%}
    Line: add "%{_%loop-value%}%" to {_t::*}
 
[15:40:52] [Server thread/WARN]: [Skript] Line 25: (queue.sk)
    'audiotrack' is not a valid Skript type. Using 'object' instead.
    Line: effect add %audiotrack% to distune queue of %guild%:
 
[15:40:52] [Server thread/WARN]: [Skript] Line 25: (queue.sk)
    'guild' is not a valid Skript type. Using 'object' instead.
    Line: effect add %audiotrack% to distune queue of %guild%:
 
[15:40:52] [Server thread/ERROR]: [Skript] Line 28: (queue.sk)
    Can't understand this expression: discord id of expr-2
    Line: add expr-1 to {aq.Queue::%discord id of expr-2%}
 
[15:40:52] [Server thread/WARN]: [Skript] Line 30: (queue.sk)
    'audiotrack' is not a valid Skript type. Using 'object' instead.
    Line: effect remove %audiotrack% from distune queue of %guild%:
 
[15:40:52] [Server thread/WARN]: [Skript] Line 30: (queue.sk)
    'guild' is not a valid Skript type. Using 'object' instead.
    Line: effect remove %audiotrack% from distune queue of %guild%:
 
[15:40:52] [Server thread/ERROR]: [Skript] Line 32: (queue.sk)
    Can't understand this expression: discord id of expr-2
    Line: remove expr-1 from {aq.Queue::%discord id of expr-2%}
 
[15:40:52] [Server thread/WARN]: [Skript] Line 34: (queue.sk)
    'guild' is not a valid Skript type. Using 'object' instead.
    Line: effect clear distune queue of %guild%:
 
[15:40:52] [Server thread/ERROR]: [Skript] Line 36: (queue.sk)
    Can't understand this condition/effect: stop queue of expr-1
    Line: stop queue of expr-1
 
[15:40:52] [Server thread/ERROR]: [Skript] Line 37: (queue.sk)
    Can't understand this expression: discord id of expr-1
    Line: delete {aq.Queue::%discord id of expr-1%}
 
[15:40:52] [Server thread/WARN]: [Skript] Line 39: (queue.sk)
    'guild' is not a valid Skript type. Using 'object' instead.
    Line: expression distune queue of %guild%:
 
[15:40:52] [Server thread/ERROR]: [Skript] Line 41: (queue.sk)
    Can't understand this expression: discord id of expr-1
    Line: return {aq.Queue::%discord id of expr-1%}
 
[15:40:52] [Server thread/ERROR]: [Skript] Line 38: (serverutils.sk)
    Can't understand this condition/effect: add {_serverutils::*} to sub commands of {_c}
    Line: add {_serverutils::*} to sub commands of {_c}
 
[15:40:52] [Server thread/ERROR]: [Skript] Line 41: (serverutils.sk)
    Can't understand this event: 'on slash command'
    Line: on slash command:
 
[15:40:52] [Server thread/ERROR]: [Skript] Line 78: (serverutils.sk)
    Can't understand this event: 'on button click'
    Line: on button click:
 
[15:40:52] [Server thread/ERROR]: [Skript] Line 106: (serverutils.sk)
    Can't understand this condition/effect: retrieve member with id "%{_m::1}%" in guild with id "%{_m::2}%" and store it in {_member}
    Line: retrieve member with id "%{_m::1}%" in guild with id "%{_m::2}%" and store it in {_member}
 
[15:40:52] [Server thread/ERROR]: [Skript] Line 109: (serverutils.sk)
    Can't understand this expression: discord id of {_member}
    Line: set {restart.Now2::%discord id of {_member}%} to nowMillis()
 
[15:40:52] [Server thread/ERROR]: [Skript] Line 110: (serverutils.sk)
    Can't understand this expression: discord id of {_member}
    Line: set {_diff} to {restart.Now1::%discord id of {_member}%}-{restart.Now2::%discord id of {_member}%}
 
[15:40:52] [Server thread/ERROR]: [Skript] Line 114: (serverutils.sk)
    Can't understand this condition/effect: edit {restartconfirm::%discord id of {_member}%} with ":white_check_mark: The restart has been completed successfully! `(%{_dtext}%s)`"
    Line: edit {restartconfirm::%discord id of {_member}%} with ":white_check_mark: The restart has been completed successfully! `(%{_dtext}%s)`"
 
[15:40:52] [Server thread/ERROR]: [Skript] Line 118: (serverutils.sk)
    Can't understand this expression: discord id of {_member}
    Line: delete {restart.Now1::%discord id of {_member}%}
 
[15:40:52] [Server thread/ERROR]: [Skript] Line 119: (serverutils.sk)
    Can't understand this expression: discord id of {_member}
    Line: delete {restart.Now2::%discord id of {_member}%}
 
[15:40:52] [Server thread/ERROR]: [Skript] Line 120: (serverutils.sk)
    Can't understand this expression: discord id of {_member}
    Line: delete {restartconfirm::%discord id of {_member}%}
 
[15:40:52] [Server thread/ERROR]: [Skript] Line 15: (test.sk)
    Can't understand this event: 'on slash command'
    Line: on slash command:
 
[15:40:52] [Server thread/ERROR]: [Skript] Line 46: (test.sk)
    Can't understand this event: 'on slash command'
    Line: on slash command:
 
[15:40:52] [Server thread/ERROR]: [Skript] Line 86: (test.sk)
    Can't understand this event: 'on slash command'
    Line: on slash command:
 
[15:40:53] [Server thread/ERROR]: [Skript] Line 41: (ticketing.sk)
    Can't understand this condition/effect: add {_ticketing::*} to sub commands of {_c}
    Line: add {_ticketing::*} to sub commands of {_c}
 
[15:40:53] [Server thread/ERROR]: [Skript] Line 45: (ticketing.sk)
    Can't understand this event: 'on slash command'
    Line: on slash command:
 
[15:40:53] [Server thread/ERROR]: [Skript] Line 128: (ticketing.sk)
    Can't understand this event: 'on button click'
    Line: on button click:
 
[15:40:53] [Server thread/ERROR]: [Skript] Line 177: (ticketing.sk)
    Can't understand this event: 'on button click'
    Line: on button click:
 
[15:40:53] [Server thread/ERROR]: [Skript] Line 208: (ticketing.sk)
    Can't understand this event: 'on button click'
    Line: on button click:
 
[15:40:53] [Server thread/ERROR]: [Skript] Line 243: (ticketing.sk)
    Can't understand this event: 'on slash command'
    Line: on slash command:
 
[15:40:53] [Server thread/ERROR]: [Skript] Line 269: (ticketing.sk)
    Can't understand this event: 'on button click'
    Line: on button click:

[WEIRD] Embed Edit Bug

I just want to edit the embed button when rate complete after its must be look like that

image

image

if {_id} = "Satisfaction":
	set {_eventmember} to discord id of event-user
	set {_int} to value of component with id "Satisfaction-1"
	if {_int} parsed as integer > 0:
		if {_int} parsed as integer <= 5:
			set {_mark} to yaml value "Satisfaction-Marks" from "data"
			set {_member} to yaml value "Satisfaction-Members" from "data"
			add {_int} parsed as integer to {_mark}
			add 1 to {_member}
			set yaml value "Satisfaction-Marks" from "data" to "%{_mark}%"
			set yaml value "Satisfaction-Members" from "data" to "%{_member}%"
			save yaml "data"
			set {_language} to yaml value "Language.Thank-For-Joining-Customer-Satisfaction-Program" from "language"
			
			reply with hidden "%{_language}%"				
			set {_buttons} to new components row
			add new disabled secondary button with url "pticket-disabled" named "%yaml value "Options.Ticket.Button.Satisfaction-Program-End.Title" from "config"%" with reaction "%yaml value "Options.Ticket.Button.Satisfaction-Program-End.Emoji" from "config"%" to components of {_buttons}
			broadcast "%{_eventmember}% member"
			edit message {pticket::rate::%discord id of event-user%} to show last embed with components row {_buttons}
			delete {pticket::rate::%discord id of event-user%}

It's editting correct but really i can't understand this interesting bug when for example click the claim button , active button it's doesn't mattter when i send any embed to event-channel after when just rating on the dm

if {_id} is "pticket-claim":
	set {_list::*} to yaml list "Whitelist-Role-ID" from "config"
	loop {_list::*}: 	
		if event-member has discord role with id "%loop-value%":	
			set {_isclaimed} to yaml value "Claimed.Channels.%discord id of event-channel%" from "claim"
			if {_isclaimed} != true:
				set {_claim} to yaml value "Database.%discord id of event-member%.Claim" from "claim"
				add 1 to {_claim}
				set yaml value "Database.%discord id of event-member%.Claim" from "claim" to {_claim}
				set yaml value "Claimed.Channels.%discord id of event-channel%" from "claim" to true

				save yaml "claim"
				set {_desc} to yaml value "Language.Ticket-Claimed-By" from "language"
				replace all "{member}" with "<@%discord id of event-user%>" in {_desc}
				make new embed:
					set description of embed to "%{_desc}%"
					set embed color of embed to aqua	

				post last created embed to event-channel
				defer the interaction

			else:
				set {_language} to yaml value "Language.Channel-Is-Claimed" from "language"
				replace all "{member}" with "<@%discord id of event-member%>" in {_language}
				
				reply with hidden "%{_language}%"
				defer the interaction

		else:
			set {_language} to yaml value "Language.Only-Whitelist-Member-Can-Claim" from "language"
			replace all "{member}" with "<@%discord id of event-member%>" in {_language}
				
			reply with hidden "%{_language}%"		
			defer the interaction

image

It's will be going like that

If you dont understand anything about write just watch the video

https://streamable.com/flq85o

permission/doesn't have role

this syntaxes doesn't work correctly
if event-member doesn't have discord role with id "id": stop
if event-member doesn't have discord permission administrator: stop

retrieve event value problem

I didn't test on other events but retrieving the "author" value in message delete event returns the member that the bot retrieved first.

For example when I load the bot
X deletes a message and the bot logs the deleted message and says X's message was deleted
Y deletes his message and the bot says X's message was deleted
Z deletes his message bot says X's message was deleted

My code:

on message delete:
	retrieve event-value "author" and store it in {_author}
	make new embed:
		set title of embed to "Deleted Message"
		add inline field named "Author" with value "%mention tag of {_author}%" to embed
		add inline field named "Deleter" with value "x" to embed
		add inline field named "channel" with value (mention tag of event-channel) to embed
		add field named "Msg" with value event-string to embed
	post (last created embed) to (channel with id "id")

Disky version 4.0beta2
MC version 1.18.2
skript version 2.6.1

Bring back user join date

Hi, so there used to be an expression to get the date a user joined the server in v3 but it doesn't seem to be here in v4. Would be great to have it back.

image
^ There only seems to be creation date for now

Channels don't get detected after a crash

Using the channel id to get a channel works fine, however after you experience a server crash (can be due to load from disky) it is impossible to detect the channel until you make a new channel and a new id to detect.
Here's the error I get after a crash
image
I have also made the sure that the id stays the same. I have even trying storing the channel in a variable, however even then doesn't work when you try to name it (after a crash).
Hope this gets fixed soon!

[LavaPlayer]: "Search in youtube" doesn't work with playlists.

Add evaluate skript code effect

So V3 has this effect where you can evaluate Skript code.
So I would like this back for the next DiSky update because it's useful to check if certain lines of code work.

So yeah just the old syntax:
eval[uate] [without executing] %string% [and store (it|the error[s]) in %-objects%]

Destroy effect doesn't work on bot messages + No error messages

Hi i need a little help.
whatever i do i can't delete any messages that bot send, tested on (DiSky 4.0 beta 4 and DiSky release 4.0.1)

My code (no errors in console):
image

I don't even know if im doing something wrong, because even if i type "sgasgas" for example after "discord command"/"on discord command" event, skript doesn't show any errors.

image

image

User is able to select a role via a role menu even if they have a role that *should* prevent them from doing so

How to reproduce:

  • Make a dropdown menu
  • Add a few role selections to it
  • Make it so that the user can only select one option
  • After selecting a role via this dropdown, wait 2 minutes for good measure
  • Try to select a different role from the dropdown, it will allow you to
options:
	role female: 969280100229087272
	role male: 969280117522198619
	role nonbinary: 969280144172806195
	role genderfluid: 969280148367106069
on dropdown click:
	set {_id} to event-string
	if {_id} is "rolemenu_gender":
		if event-member has discord role with id "{@role female}" or "{@role male}" or "{@role nonbinary}" or "{@role genderfluid}":
			reply with hidden "❌ If you'd like to change your gender role, please contact support."
		else:
			if selected value is "female":
				add role with id "{@role female}" to event-member
				reply with hidden "✅ You selected Female."
			if selected value is "male":
				add role with id "{@role male}" to event-member
				reply with hidden "✅ You selected Male."
			if selected value is "nonbinary":
				add role with id "{@role nonbinary}" to event-member
				reply with hidden "✅ You selected Nonbinary."
			if selected value is "genderfluid":
				add role with id "{@role genderfluid}" to event-member
				reply with hidden "✅ You selected Genderfluid."

suggestion for bot unload event

an event of some sort that would trigger once the bot gets unloaded/stopped and would be more reliable than "on unload" or similar solutions.

`if player is online` condition stops working when DiSky is installed.

Hello I need some help

When I have DiSky version 4.1.0 installed the if player is online condition stops working. I am on skript version 2.6.1 with paper 1.18.2 and DiSky 4.1.0.

I know it's DiSky causing the problem for sure because 1. the issue only started happening when I installed DiSky and 2. it completely fixes itself when DiSky is uninstalled. There are also no errors in console for some reason

How can I send last embed to a certain channel

My code worked on MC1.18.2 Skript 2.5 and Disky 3.6.0-ARK but after version up to MC 1.19 Skript 2.6 and Disky 4.0.1 ,It does not worked.
how can I amend codes?

[Code]
Before:

make new discord bot:
	enable all default intent
	login to "---my token---" with name "---bot Name---"

command /sample command:
	trigger:
		make embed:
			set title of the embed to "....."
			set description of the embed to "...."
			send last embed to channel with id "---text chat channel ID---" with bot "---bot Name---"

After: --->CODE ERROR

define new bot named "---bot Name---":
	token: {@token}
	intents: default intents
	policy: all
	auto reconnect: true
	compression: none
	
command /sample command:
	trigger:
		make embed:
			set title of the embed to "....."
			set description of the embed to "...."
			send last embed to channel with id "---text chat channel ID---" with bot "---bot Name---"

[result]
--->>Can't understand this condition/effect: send last embed to channel with id "---text chat channel ID---" with bot "---bot Name---"

Unable to create the configuration file & Problem with the Emoji Library

Hello,

Everything is in the title, DiSky could not create the configuration file and the emoji library could not load ...

Informations :
- Minecraft : 1.16.5
- Skript : 2.6.3
- DiSky : 4.3.0

----------------------------------------

[14:50:03 INFO]: [DiSky] Enabling DiSky v4.3.0
[14:50:03 ERROR]: [DiSky] Cannot create config file
[14:50:03 WARN]: java.nio.file.NoSuchFileException: plugins/DiSky/config.yml
[14:50:03 WARN]:        at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:92)
[14:50:03 WARN]:        at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:106)
[14:50:03 WARN]:        at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111)
[14:50:03 WARN]:        at java.base/sun.nio.fs.UnixFileSystemProvider.newByteChannel(UnixFileSystemProvider.java:219)
[14:50:03 WARN]:        at java.base/java.nio.file.spi.FileSystemProvider.newOutputStream(FileSystemProvider.java:478)
[14:50:03 WARN]:        at java.base/java.nio.file.Files.newOutputStream(Files.java:224)
[14:50:03 WARN]:        at java.base/java.nio.file.Files.write(Files.java:3491)
[14:50:03 WARN]:        at info.itsthesky.disky.DiSky.onEnable(DiSky.java:66)
[14:50:03 WARN]:        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:263)
[14:50:03 WARN]:        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:370)
[14:50:03 WARN]:        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:500)
[14:50:03 WARN]:        at org.bukkit.craftbukkit.v1_16_R3.CraftServer.enablePlugin(CraftServer.java:518)
[14:50:03 WARN]:        at org.bukkit.craftbukkit.v1_16_R3.CraftServer.enablePlugins(CraftServer.java:432)
[14:50:03 WARN]:        at net.minecraft.server.v1_16_R3.MinecraftServer.loadWorld(MinecraftServer.java:599)
[14:50:03 WARN]:        at net.minecraft.server.v1_16_R3.DedicatedServer.init(DedicatedServer.java:298)
[14:50:03 WARN]:        at net.minecraft.server.v1_16_R3.MinecraftServer.w(MinecraftServer.java:1074)
[14:50:03 WARN]:        at net.minecraft.server.v1_16_R3.MinecraftServer.lambda$a$0(MinecraftServer.java:291)
[14:50:03 WARN]:        at java.base/java.lang.Thread.run(Thread.java:831)
[14:50:03 ERROR]: Cannot load plugins/DiSky/config.yml
java.io.FileNotFoundException: plugins/DiSky/config.yml (No such file or directory)
        at java.io.FileInputStream.open0(Native Method) ~[?:?]
        at java.io.FileInputStream.open(FileInputStream.java:211) ~[?:?]
        at java.io.FileInputStream.<init>(FileInputStream.java:153) ~[?:?]
        at org.bukkit.configuration.file.FileConfiguration.load(FileConfiguration.java:126) ~[patched_1.16.5.jar:git-Paper-794]
        at info.itsthesky.disky.managers.Configuration.loadConfiguration(Configuration.java:38) ~[?:?]
        at info.itsthesky.disky.DiSky.onEnable(DiSky.java:72) ~[?:?]
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:263) ~[patched_1.16.5.jar:git-Paper-794]
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:370) ~[patched_1.16.5.jar:git-Paper-794]
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:500) ~[patched_1.16.5.jar:git-Paper-794]
        at org.bukkit.craftbukkit.v1_16_R3.CraftServer.enablePlugin(CraftServer.java:518) ~[patched_1.16.5.jar:git-Paper-794]
        at org.bukkit.craftbukkit.v1_16_R3.CraftServer.enablePlugins(CraftServer.java:432) ~[patched_1.16.5.jar:git-Paper-794]
        at net.minecraft.server.v1_16_R3.MinecraftServer.loadWorld(MinecraftServer.java:599) ~[patched_1.16.5.jar:git-Paper-794]
        at net.minecraft.server.v1_16_R3.DedicatedServer.init(DedicatedServer.java:298) ~[patched_1.16.5.jar:git-Paper-794]
        at net.minecraft.server.v1_16_R3.MinecraftServer.w(MinecraftServer.java:1074) ~[patched_1.16.5.jar:git-Paper-794]
        at net.minecraft.server.v1_16_R3.MinecraftServer.lambda$a$0(MinecraftServer.java:291) ~[patched_1.16.5.jar:git-Paper-794]
        at java.lang.Thread.run(Thread.java:831) [?:?]
[14:50:03 INFO]: [DiSky] Saving emoji's file ...
[14:50:03 WARN]: java.nio.file.NoSuchFileException: plugins/DiSky/emojis.json
[14:50:03 WARN]:        at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:92)
[14:50:03 WARN]:        at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:106)
[14:50:03 WARN]:        at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111)
[14:50:03 WARN]:        at java.base/sun.nio.fs.UnixFileSystemProvider.newByteChannel(UnixFileSystemProvider.java:219)
[14:50:03 WARN]:        at java.base/java.nio.file.spi.FileSystemProvider.newOutputStream(FileSystemProvider.java:478)
[14:50:03 WARN]:        at java.base/java.nio.file.Files.newOutputStream(Files.java:224)
[14:50:03 WARN]:        at java.base/java.nio.file.Files.write(Files.java:3491)
[14:50:03 WARN]:        at info.itsthesky.disky.DiSky.onEnable(DiSky.java:88)
[14:50:03 WARN]:        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:263)
[14:50:03 WARN]:        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:370)
[14:50:03 WARN]:        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:500)
[14:50:03 WARN]:        at org.bukkit.craftbukkit.v1_16_R3.CraftServer.enablePlugin(CraftServer.java:518)
[14:50:03 WARN]:        at org.bukkit.craftbukkit.v1_16_R3.CraftServer.enablePlugins(CraftServer.java:432)
[14:50:03 WARN]:        at net.minecraft.server.v1_16_R3.MinecraftServer.loadWorld(MinecraftServer.java:599)
[14:50:03 WARN]:        at net.minecraft.server.v1_16_R3.DedicatedServer.init(DedicatedServer.java:298)
[14:50:03 WARN]:        at net.minecraft.server.v1_16_R3.MinecraftServer.w(MinecraftServer.java:1074)
[14:50:03 WARN]:        at net.minecraft.server.v1_16_R3.MinecraftServer.lambda$a$0(MinecraftServer.java:291)
[14:50:03 WARN]:        at java.base/java.lang.Thread.run(Thread.java:831)
[14:50:03 ERROR]: [DiSky] An error occurred while saving emojis file! Emojis will not be available.
[14:50:03 INFO]: [DiSky] Success!
[14:50:03 INFO]: [DiSky] Loading emoji library ...
[14:50:03 WARN]: java.io.FileNotFoundException: plugins/DiSky/emojis.json (No such file or directory)
[14:50:03 WARN]:        at java.base/java.io.FileInputStream.open0(Native Method)
[14:50:03 WARN]:        at java.base/java.io.FileInputStream.open(FileInputStream.java:211)
[14:50:03 WARN]:        at java.base/java.io.FileInputStream.<init>(FileInputStream.java:153)
[14:50:03 WARN]:        at info.itsthesky.disky.api.emojis.EmojiStore.loadLocal(EmojiStore.java:24)
[14:50:03 WARN]:        at info.itsthesky.disky.DiSky.onEnable(DiSky.java:97)
[14:50:03 WARN]:        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:263)
[14:50:03 WARN]:        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:370)
[14:50:03 WARN]:        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:500)
[14:50:03 WARN]:        at org.bukkit.craftbukkit.v1_16_R3.CraftServer.enablePlugin(CraftServer.java:518)
[14:50:03 WARN]:        at org.bukkit.craftbukkit.v1_16_R3.CraftServer.enablePlugins(CraftServer.java:432)
[14:50:03 WARN]:        at net.minecraft.server.v1_16_R3.MinecraftServer.loadWorld(MinecraftServer.java:599)
[14:50:03 WARN]:        at net.minecraft.server.v1_16_R3.DedicatedServer.init(DedicatedServer.java:298)
[14:50:03 WARN]:        at net.minecraft.server.v1_16_R3.MinecraftServer.w(MinecraftServer.java:1074)
[14:50:03 WARN]:        at net.minecraft.server.v1_16_R3.MinecraftServer.lambda$a$0(MinecraftServer.java:291)
[14:50:03 WARN]:        at java.base/java.lang.Thread.run(Thread.java:831)
[14:50:03 ERROR]: [DiSky] An error occurred while loading emojis! They will not be available.
[14:50:03 INFO]: [DiSky] Success!

Bot is unable to reply when using a temp variable

on button click:
    set {_id} to event-string
    if {_id} is "verify_yes":

        chance of 50%:
            set {_random1} to "👌"
        chance of 50%:
            set {_random1} to "👍"

        chance of 50%:
            set {_random2} to "😉"
        chance of 50%:
            set {_random2} to "😋"

        make embed:
            set title of embed to "Sentient Events Verifications"
            set author of embed to "Photo 1"
            set description of embed to "Please take a selfie and mimic the following gestures: %{_random1}%, %{_random2}%"
        reply with last embed and store it in {_dmreply}

Space in name of command

Hi ! This is my first issue and I'm not sure how github works. Sorry if I got it wrong. I suggest adding the possibility to put spaces in the name of slash commands.

For exemple :
/quest start
/quest create
/quest delete
/quest set
(this is to show you that the arguments are different and therefore that I can't just do a /quest with a suggest ;)

Some role problems

on join:
  member with id "%{_output::Discord_ID::1}%" doesn't have discord role with id "id":
  member with id "%{_output::Discord_ID::1}%" has discord role with id "id":
  add role with id "id" to role of (member with id "%{_output::Discord_ID::1}%")
  remove role with id "id" from role of (member with id "%{_output::Discord_ID::1}%")

All syntax giving "Can't understand this condition:"

Bring back the append effect

Hello, so there was append %string/embedbuilder% to [message] [builder] %messagebuilder% in v3 before, but it doesn't seem to be in v4. Would be great to have that back too, thanks!

Unexpected Error

Hey, I am getting this error at console but don't know what it means. It didn't appear in previous versions of DiSky so I figured I should report this.

[13:21:01 ERROR]: [net.dv8tion.jda.internal.requests.WebSocketClient] Got an unexpected error. Please redirect the following message to the devs:
        JDA 5.0.0-alpha.13_0e17a16
        CHANNEL_UPDATE -> {"nsfw":false,"rate_limit_per_user":0,"flags":0,"bitrate":64000,"user_limit":0,"type":2,"guild_hashes":{"metadata":{"hash":"U04DVw"},"channels":{"hash":"JmlCcg"},"roles":{"hash":"6mep0w"},"version":1},"rtc_region":null,"permission_overwrites":[{"allow":"0","deny":"2048","id":"720285662573625434","type":0},{"allow":"1068048","deny":"0","id":"458276816071950337","type":1},{"allow":"1024","deny":"825233425","id":"718519105644396694","type":0}],"last_message_id":null,"parent_id":"789455875940024351","name":"Member Count: 446","hashes":{"metadata":{"hash":"U04DVw"},"channels":{"hash":"JmlCcg"},"roles":{"hash":"6mep0w"},"version":1},"guild_id":"718519105644396694","position":1,"id":"789455882140123156"}
java.lang.ClassCastException: class net.dv8tion.jda.internal.entities.VoiceChannelImpl cannot be cast to class net.dv8tion.jda.api.entities.IThreadContainer (net.dv8tion.jda.internal.entities.VoiceChannelImpl and net.dv8tion.jda.api.entities.IThreadContainer are in unnamed module of loader 'DiSky.4.3.0.jar' @2289a977)
        at net.dv8tion.jda.internal.handle.ChannelUpdateHandler.handleInternally(ChannelUpdateHandler.java:380) ~[DiSky.4.3.0.jar:?]
        at net.dv8tion.jda.internal.handle.SocketHandler.handle(SocketHandler.java:39) ~[DiSky.4.3.0.jar:?]
        at net.dv8tion.jda.internal.requests.WebSocketClient.onDispatch(WebSocketClient.java:953) ~[DiSky.4.3.0.jar:?]
        at net.dv8tion.jda.internal.requests.WebSocketClient.onEvent(WebSocketClient.java:840) ~[DiSky.4.3.0.jar:?]
        at net.dv8tion.jda.internal.requests.WebSocketClient.handleEvent(WebSocketClient.java:818) ~[DiSky.4.3.0.jar:?]
        at net.dv8tion.jda.internal.requests.WebSocketClient.onTextMessage(WebSocketClient.java:979) ~[DiSky.4.3.0.jar:?]
        at com.neovisionaries.ws.client.ListenerManager.callOnTextMessage(ListenerManager.java:369) ~[DiSky.4.3.0.jar:?]
        at com.neovisionaries.ws.client.ReadingThread.callOnTextMessage(ReadingThread.java:233) ~[DiSky.4.3.0.jar:?]
        at com.neovisionaries.ws.client.ReadingThread.handleTextFrame(ReadingThread.java:969) ~[DiSky.4.3.0.jar:?]
        at com.neovisionaries.ws.client.ReadingThread.handleFrame(ReadingThread.java:752) ~[DiSky.4.3.0.jar:?]
        at com.neovisionaries.ws.client.ReadingThread.main(ReadingThread.java:108) ~[DiSky.4.3.0.jar:?]
        at com.neovisionaries.ws.client.ReadingThread.runMain(ReadingThread.java:64) ~[DiSky.4.3.0.jar:?]
        at com.neovisionaries.ws.client.WebSocketThread.run(WebSocketThread.java:45) ~[DiSky.4.3.0.jar:?]

Channel Permission Bug

Hey when i try to add permissions in channel to members or roles there is a big problem. It's always just adding latest permission to member / roles

    set {_memberpermission::*} to yaml list "Options.Ticket.Permissions.Event-Member.Permission" from "config" 
    loop {_memberpermission::*}:
        add (loop-value parsed as permission) to permissions of {_member} in {_channel}

image

For example in this code as you can see latest permission on the list = message attach files so it's just adding the message attach

image

Also when checking the server logs on the discord we can see it's adding all of them but after resetting it's like add after reset , add reset so there is a important bug i think.

After just talked with @Mushkrem 22.05.2022 and tell them this bug on after @Mushkrem changed somethings on the .jar after give it me when i try it was working on just one role and it was slow and delayed beacuse of the wait effects

function TicketCreateTicket(channelname : text, i : int, topic : text, categoryid : text, guild : guild, member : member):
    set {_action} to new text channel action in {_guild}
    set channel parent of {_action} to category with id {_categoryid}
    set channel name of {_action} to "%{_channelname}%-%{_i}%"
    set topic of {_action} to "%{_topic}%"
    create {_action} and store it in {_channel}
    remove (view channel) from permissions of public role of {_guild} in {_channel}
    
    set {_eventmemberpermission::*} to yaml list "Options.Ticket.Permissions.Event-Member" from "config"
    loop {_eventmemberpermission::*}:
        add (loop-value parsed as permission) to permissions of {_member} in {_channel} #Problem in here
        wait 1 seconds


    
    loop yaml node keys "Options.Ticket.Permissions.Roles" from "config":
        set {_permission::*} to yaml list "Options.Ticket.Permissions.Roles.%loop-value%" from "config" 
        loop {_permission::*}:
            add (loop-value-2 parsed as permission) to permissions of role with id loop-value-1 in {_channel} #Problem in here 
            wait 1 seconds

image

It's just adding permissions to the role with id "977891644932227142" correct after the second role still same problem just adding latest permission on the list only message attachments files.Im said @Mushkrem this problem @Mushkrem said

image

Now i just think its beacuse of the yml list so i tried do it like that

    # Event-Member Permission
    add (view channel) to permissions of {_member} in {_channel}
    add (message send) to permissions of {_member} in {_channel}
    add (message add reaction) to permissions of {_member} in {_channel}
    add (message attach files) to permissions of {_member} in {_channel}

image

But nothing changed beacuse it's still adds the only last specified permission as you can see with the discord logs

The channel permissions was working perfect on disky 2.1 but in the disky 4 there looks big problem.

I am open to your suggestions for a helpful solution if this is a bug or not, what is it?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.