Closed AL3NZISA-zmfci closed 7 months ago
it sends the error even if the player doesn't have the role
Is this still happening? Does the error occur every time you're executing the command? How do you handle the command registration? (global or guild)
i have a linking system with a booster id role heres the code
function boosterKeys(): set {_role} to guild boost role of guild with id "Booster role" make embed: set embed color of embed to red set title of embed to "BOOSTER REWARDS" set footer of embed to "Happens every 2 days" set description of embed to "You have been rewarded with a GEAR and 2 CASINO KEYS!%nl%%nl%Claim your keys in-game using the command:%nl%| /claimbooster |" post last embed to text channel with id "booster channel" post mention tag of {_role} to text channel with id "mentions the booster role" loop indexes of {linkedGeneral::}: set {_m} to member with id loop-value from guild with id "server id" if {_m} is a member: if {_m} has discord role {_role}: execute console command "lp user %{_linkedGeneral::%loop-value%::}% parent addtemp booster 2d"
Heres the error from console when i do /link in the discord it checks if am boosting the server but it doesn't execute the command i get this error
19:50:00 INFO: [!] DiSky Internal Error (version: 4.12.1) 19:50:00 INFO: [!] Error type: ErrorResponseException
19:50:00 INFO: [!] 10062: Unknown interaction
19:50:00 INFO: [!] Full Stacktrace:
19:50:00 INFO: [!] DiSky 4.12.1.jar//net.dv8tion.jda.api.exceptions.ErrorResponseException.create(ErrorResponseException.java:185) 19:50:00 INFO: [!] DiSky 4.12.1.jar//net.dv8tion.jda.api.requests.Request.onFailure(Request.java:143) 19:50:00 INFO: [!] DiSky 4.12.1.jar//net.dv8tion.jda.internal.requests.RestActionImpl.handleResponse(RestActionImpl.java:281) 19:50:00 INFO: [!] DiSky 4.12.1.jar//net.dv8tion.jda.internal.requests.restaction.interactions.InteractionCallbackImpl.handleResponse(InteractionCallbackImpl.java:109) 19:50:00 INFO: [!] DiSky 4.12.1.jar//net.dv8tion.jda.api.requests.Request.handleResponse(Request.java:288) 19:50:00 INFO: [!] DiSky 4.12.1.jar//net.dv8tion.jda.internal.requests.Requester$WorkTask.handleResponse(Requester.java:414) 19:50:00 INFO: [!] DiSky 4.12.1.jar//net.dv8tion.jda.internal.requests.Requester$WorkTask.access$300(Requester.java:350) 19:50:00 INFO: [!] DiSky 4.12.1.jar//net.dv8tion.jda.internal.requests.Requester.execute(Requester.java:233) 19:50:00 INFO: [!] DiSky 4.12.1.jar//net.dv8tion.jda.internal.requests.Requester.execute(Requester.java:145) 19:50:00 INFO: [!] DiSky 4.12.1.jar//net.dv8tion.jda.internal.requests.Requester.execute(Requester.java:128) 19:50:00 INFO: [!] DiSky 4.12.1.jar//net.dv8tion.jda.internal.requests.Requester$WorkTask.execute(Requester.java:378) 19:50:00 INFO: [!] DiSky 4.12.1.jar//net.dv8tion.jda.api.requests.SequentialRestRateLimiter$Bucket.execute(SequentialRestRateLimiter.java:446) 19:50:00 INFO: [!] DiSky 4.12.1.jar//net.dv8tion.jda.api.requests.SequentialRestRateLimiter$Bucket.run(SequentialRestRateLimiter.java:490) 19:50:00 INFO: [!] java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539) 19:50:00 INFO: [!] java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) 19:50:00 INFO: [!] java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304) 19:50:00 INFO: [!] java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) 19:50:00 INFO: [!] java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) 19:50:00 INFO: [!] java.base/java.lang.Thread.run(Thread.java:840)
19:50:00 INFO: [!] READ THE ERROR CAREFULLY, and if you are sure about it, 19:50:00 INFO: [!] you can report the error with the whole stacktrace on the GitHub repository: 19:50:00 INFO: [!] https://github.com/DiSkyOrg/DiSky/issues/new