GoldyBot.utility.guilds

 1from typing import List
 2import nextcord
 3import GoldyBot
 4from . import config, guild
 5
 6def get_guild_ids() -> List[int]:
 7    """Returns the id of all the guilds Goldy Bot is in."""
 8    client:nextcord.Client = GoldyBot.cache.main_cache_dict["client"]
 9
10    guilds_ids = []
11
12    for guild in client.guilds:
13        guilds_ids.append(guild.id)
14
15    return guilds_ids
def get_guild_ids() -> List[int]:
 7def get_guild_ids() -> List[int]:
 8    """Returns the id of all the guilds Goldy Bot is in."""
 9    client:nextcord.Client = GoldyBot.cache.main_cache_dict["client"]
10
11    guilds_ids = []
12
13    for guild in client.guilds:
14        guilds_ids.append(guild.id)
15
16    return guilds_ids

Returns the id of all the guilds Goldy Bot is in.