Help with my Vixio skript. Its not working

  • Welcome to skUnity!

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

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

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

  • LOOKING FOR A VERSION OF SKRIPT?

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

Status
Not open for further replies.

bobsilowski

Member
Apr 20, 2021
12
1
3
I don't know what is not working but it says cannot understand condition: if %member% has the role %donator%

Code:
discord command account:
    prefixes: .
    trigger:
        if {discord::%discord id of event-member%::username} is set:
            if %member% has the role %donator%:
                create embed:
                    set color of the embed to Blue
                    set title of the embed to "Account Info"
                    set the description of the embed to "Minecraft user: **%{discord::%discord id of event-member%::username}%** linked to Discord member: **%event-user%**|Donator: :white_check_mark:"
                set {_infoembed} to last made embed
                send the last created embed to event-channel with event-bot
                delete {_infoembed}
        else:
            create embed:
                set color of the embed to Red
                set title of the embed to "Account Not Linked"
                set the description of the embed to "Your account has not been linked yet. Look at the pinned messages to see how to link your account"
            set {_notlinkedembed} to last made embed
            send the last created embed to event-channel with event-bot
            delete {_notlinkedembed}
 
Status
Not open for further replies.