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

  • 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!

  • 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.

illusion

Member
May 17, 2019
12
0
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
 
Status
Not open for further replies.