Solved Vixio total members channel

  • 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.
Set the discord name of voice Channel with id "your Channel id" in Guild with id "your id"

Set the discord name of voice Channel with id "your Channel id" in event-guild

This should work
[doublepost=1583400978,1583369847][/doublepost]I was on my mobile when I wrote that sorry

Code:
Set the discord name of voice Channel with id "your Channel id" in Guild with id "your id" to "text"

Set the discord name of voice Channel with id "your Channel id" in event-guild to "text"
 
Ok, that seems to work. But I’m not sure how I can get all the members in the discord? I tried like “%all members in guild%” and many other things.
[doublepost=1583418910,1583418861][/doublepost]I was able to do something that shows the names of all the members, but I want to see the number of members and not the names
 
Ok, that seems to work. But I’m not sure how I can get all the members in the discord? I tried like “%all members in guild%” and many other things.
[doublepost=1583418910,1583418861][/doublepost]I was able to do something that shows the names of all the members, but I want to see the number of members and not the names
"size of [discord ][guild ]%string%"
 
"size of [discord ][guild ]%string%"
Ok, im starting to get somewhere now. But when i reload my skript, it gives the "There is no player in a periodic event" Im not sure how to fix that with vixio?

Code:
every 1 seconds:
    Set the discord name of voice Channel with id "685162861525364547" in guild with id "6729213975647557" to "%size of discord members of event-guild%" with "dqpro"
 
If you want to make a player count use discord join event like when A user join your discord edit the name of the channel because "every *num* seconds" can be extremlly laggy

and you can use player code in a every *** so I advise you to do something like that :

Code:
on member join guild:
    Set the discord name of voice Channel with id "your Channel id" in Guild with id "your id" to "text"

#you can use event-guild :) 
on member leave guild:
    Set the discord name of voice Channel with id "your Channel id" in event-guild to "text"
 
If you want to make a player count use discord join event like when A user join your discord edit the name of the channel because "every *num* seconds" can be extremlly laggy

and you can use player code in a every *** so I advise you to do something like that :

Code:
on member join guild:
    Set the discord name of voice Channel with id "your Channel id" in Guild with id "your id" to "text"

#you can use event-guild :)
on member leave guild:
    Set the discord name of voice Channel with id "your Channel id" in event-guild to "text"
Yeah, i guess that would work also lol. But i need help with 1 more thing. How could i do the same thing but for a total of bots? I have this, but it gives a error.
Code:
%size of discord bots of event-guild%
 
No time to make this but: get all the users in a guild loop trough them and check with expr bot state wich of the users are bots.
 
I got it to work :emoji_slight_smile: But now im having trouble on mentioning a role. I tried %mention tag of role of "Owner"% But i think that might not be right?
 
Status
Not open for further replies.