1. 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 comminuty!

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

  2. LOOKING FOR A VERSION OF SKRIPT??:

    You can always check our our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Solved Return ID of Guild in Vixio w/ skript-yaml (Discord Bot)

Discussion in 'Skript' started by illusion, Jun 16, 2019.

Tags:
Thread Status:
Not open for further replies.
  1. illusion

    illusion Member

    Joined:
    May 17, 2019
    Messages:
    12
    Likes Received:
    0
    Skript Version: 2.2-dev36
    Skript Author: bensku
    Spigot Version: Spigot 1.8.8

    My code:

    1. function setprefix(g: guild, t: text):
    2. set yaml value "%id of {_g}%.Prefixo" from "§prefix§" to "%{_t}%"
    3. save yaml "§prefix§"
    4. function getprefix(g: guild) :: text:
    5. return yaml value "%id of {_g}%.Prefixo" from "§prefix§"

    6. discord command setprefix [<text>]:
    1. aliases: prefixset, prefixo, setarprefix, setarprefixo
    2. prefixes: {@prf}
    3. roles: Staff
    4. trigger:
    5. arg is set:
    6. reply with "▫ O prefixo do **Litch** foi alterado para ``%arg%`` neste servidor."
    7. setprefix(event-guild, arg)

    My problem: He sets the prefix, but the id of event-guild in yaml appears <none>, because this, the getprefix isn't works. Sorry for bad english, i'm brazilian.
    Screenshot_95.png
     
Thread Status:
Not open for further replies.
Loading...