Code is not working and I am not sure how to solve. The error is: '%{discord::%discord id of event-member%::username}% with event-bot' is not a valid item data
Code:
discord command link [<text>]:
prefixes: .
trigger:
if arg-1 is not set:
reply with "Correct usage: .link <code>"
stop
if {code::%arg-1%} is not set:
reply with "Invalid code"
stop
if {discord::%discord id of event-member%::username} is set:
reply with "Account already linked"
stop
set {discord::%discord id of event-member%::username} to {code::%arg-1%}
wait 1 second
create embed:
set color of the embed to Green
set title of the embed to "Account Linked!"
set the description of the embed to "Minecraft user: %{code::%arg-1%}% linked to Discord member: %event-user%"
set {_embed} to last made embed
send the last created embed to event-channel with event-bot
set the nickname of event-user to %{discord::%discord id of event-member%::username}% with event-bot
delete {_embed}