# Path: dozer/cogs/info.py
# class Info(Cog):
#     async def slash_member(self, ctx: SlashContext, member: discord.Member = None):
#     async def member(self, ctx, *, member: discord.Member = None):
#     def _format_activities(activities: typing.Sequence[discord.Activity]) -> typing.List[str]:
#         def format_activity(activity: discord.Activity) -> str:
#     def pluralize(values: typing.List[str]) -> str:
#     async def slash_role(self, ctx: SlashContext, role: discord.Role):
#     async def role(self, ctx, role: discord.Role):
#     async def slash_rolemember(self, ctx: SlashContext, role: discord.Role):
#     async def rolemembers(self, ctx, role: discord.Role):
#     async def slash_guild(self, ctx: SlashContext):
#     async def guild(self, ctx):
# def setup(bot):


import json
import discord
from aiotba.http import AioTBAError
from discord.ext.commands import BadArgument, guild_only, has_permissions
from discord_slash import cog_ext, SlashContext
from ._utils import *
from .info import blurple
from .. import db
            members = await TeamNumbers.get_by(team_type=event_type.lower(), team_number=team)
            memstr = ""
            for member in members:
                mem = ctx.guild.get_member(member.user_id)
                if mem is not None:
                    newmemstr = "{} {} \n".format(mem.display_name, mem.mention)
                    if len(newmemstr + memstr) > 1023:
                        e.add_field(name=f"Team {team}", value=memstr)
                        memstr = ""
                    memstr += newmemstr
                    found_mems = True
            if len(memstr) > 0:
                if len(e.fields) == 25:
                    embeds.append(e)
                    e = discord.Embed(type='rich')
                    e.title = 'Members going to {}'.format(event_key)
                e.add_field(name=f"Team {team}", value=memstr)
                embeds.append(e)
        if not found_mems:
            await ctx.send("Couldn't find any team members for that event!")
            return
        else:
            pagenum = 1
            for embed in embeds:
                embed.set_footer(text=f"Page {pagenum} of {len(embeds)}")
                pagenum += 1
            await paginate(ctx, embeds)

    compcheck.example_usage = """
    `{prefix}compcheck frc 2019txaus` - Returns all members on teams registered for 2019 Austin District Event

# Path: dozer/cogs/info.py
# class Info(Cog):
#     async def slash_member(self, ctx: SlashContext, member: discord.Member = None):
#     async def member(self, ctx, *, member: discord.Member = None):
#     def _format_activities(activities: typing.Sequence[discord.Activity]) -> typing.List[str]:
#         def format_activity(activity: discord.Activity) -> str:
#     def pluralize(values: typing.List[str]) -> str:
#     async def slash_role(self, ctx: SlashContext, role: discord.Role):
#     async def role(self, ctx, role: discord.Role):
#     async def slash_rolemember(self, ctx: SlashContext, role: discord.Role):
#     async def rolemembers(self, ctx, role: discord.Role):
#     async def slash_guild(self, ctx: SlashContext):
#     async def guild(self, ctx):
# def setup(bot):


# Path: dozer/cogs/teams.py
import json
import discord
from aiotba.http import AioTBAError
from discord.ext.commands import BadArgument, guild_only, has_permissions
from discord_slash import cog_ext, SlashContext
from ._utils import *
from .info import blurple
from .. import db

            members = await TeamNumbers.get_by(team_type=event_type.lower(), team_number=team)
            memstr = ""
            for member in members:
                mem = ctx.guild.get_member(member.user_id)
                if mem is not None:
                    newmemstr = "{} {} \n".format(mem.display_name, mem.mention)
                    if len(newmemstr + memstr) > 1023:
                        e.add_field(name=f"Team {team}", value=memstr)
                        memstr = ""
                    memstr += newmemstr
                    found_mems = True
            if len(memstr) > 0:
                if len(e.fields) == 25:
                    embeds.append(e)
                    e = discord.Embed(type='rich')
                    e.title = 'Members going to {}'.format(event_key)
                e.add_field(name=f"Team {team}", value=memstr)
                embeds.append(e)
        if not found_mems:
            await ctx.send("Couldn't find any team members for that event!")
            return
        else:
            pagenum = 1
            for embed in embeds:
                embed.set_footer(text=f"Page {pagenum} of {len(embeds)}")
                pagenum += 1
            await paginate(ctx, embeds)

    compcheck.example_usage = """
    `{prefix}compcheck frc 2019txaus` - Returns all members on teams registered for 2019 Austin District Event

    `{prefix}compcheck ftc 1920-TX-AML2` - Returns all members on teams registered for the 2020 Austin Metro League Championship Dell Division