Skip to content

tux.utils.substitutions

Classes

Functions

_get_member_count(bot: Tux) -> int

Returns the total member count of all guilds the bot is in.

Returns:

Type Description
int

The total member count of all guilds the bot is in.

Source code in tux/utils/substitutions.py
Python
def _get_member_count(bot: Tux) -> int:
    """
    Returns the total member count of all guilds the bot is in.

    Returns
    -------
    int
        The total member count of all guilds the bot is in.
    """
    return sum(guild.member_count for guild in bot.guilds if guild.member_count is not None)