Skip to content

Natives (Guilds)

toketwo edited this page Feb 9, 2024 · 1 revision

HomeNativesGuilds

  • Parameters:
    • guildid: The script ID of the guild to get a name from.
    • destination[]: Where to store the name in.
  • Returns:
    • 1 if a name could be retrieved. 0 if not.

This function simply returns a guilds name.


  • Parameters: None.
  • Returns:
    • Returns the number of guilds available.

  • Parameters:
    • guildid: The script id of the guild to count the members from.
  • Returns:
    • The number of members inside the guild.

How it works (script ids):

On the bot's startup, all discord servers(guilds) and their users are scanned for the first time. After everything has been retrieved, each discord server has an simple (just for this programs own use) integer ID applied.

This makes refering to discord guilds in natives easier.