#My discord linking method says the code is wrong even though it is right.
1 messages · Page 1 of 1 (latest)
do you have the needed add-ons
i can't look at code rn, but base skript can't connect to discord
Yeah I am using Skript, Disky, & SkBee, the only needed ones. There are no errors by the way, it works to click on the button sent from the .sendembed button but it says the code is incorrect even though it is the right code & my the skript code looks good to me & to debug I also made it broadcast the code to see if it wasn't set but it is.
I know about DiscordSRV, I used to use it. However discord & disky allows for more availability & easy way to access code since it is with skript not java.
yes it can
with the addons
did you not read what I said
I recommend adding a if here
but yeah, idk enough about disky for this
disky is buggy
You could do one using skreflect but you would need to know the basics of java
Alright, the main thing is that it just can't detect the code for some reason in the last section
ahh sorry for pinging you
Oh yeah sorry, the last section is
if event-string = "verification":
broadcast "&7The code is &a%{codeinfo}%&8."
set {codeinfo2} to value of text input with id "code"
if {code::*} does not contain {codeinfo2}:
reply with hidden "Invalid Verification Code! Type **/discord link** ingame to generate yours."
stop
loop {code::*}:
loop-value = {codeinfo2}
set {_uuid} to loop-index
delete {code::%{_uuid}%}
set {discord::%{_uuid}%} to discord id of event-user
reply with hidden "Account successfully linked with: **%{_uuid} parsed as offline player%**"
send formatted "{@prefix} &7Your account is now linked with &9%event-member% &8[<cmd:/discord unlink><ttp:&cClick to unlink your account>&cUnlink<reset>&8]" to {_uuid} parsed as offline player
syncAccount({_uuid} parsed as offline player)```
btw, you could make {codeinfo2} be a local variable to prevent issues
{_codeinfo2}
this means it will only be remembered in that code block
once it's done, the var is deleted
Oh
so it depends if you need that variable somewhere else
I ain't very good with skript I am just 1 month experience yk
ngl u code looks neat
...
Idk what to say lol
I am speech less xD
BTW Toni
Can u just provide me docs for like cool down things??
I am making a fortune skript
cooldown?
there's a few ways, but I've never used docs for that
there's cooldown: time, for commands
you can also look at the difference between a %now% variable saved at last usage and compare to now
Ah alright & it is okay I understand you. I want it to send from the /discord link code, but thanks!
You... Can
I think only 1 disky works right now, the beta
atleast for the newest skript
Oh okay thanks, I have 2.7 skript since the newest one had issues for me
Do newest with skdisky beta