utils/announcements.py
async def from_unique_id(cls, ctx, unique_id: int) -> typing.Optional[Announcement]:
        """ Gets an announcement via the unique_id and returns an Announement object,
            if successful, else, will return None.
        """
        announcement_fetched = await ctx.bot.pool.fetchrow("SELECT * FROM main_site_announcement WHERE unique_id = $1", int(unique_id))
        if not announcement_fetched:
            return None
        return cls(dict(announcement_fetched))
 Gets an announcement via the unique_id and returns an Announement object,
            if successful, else, will return None.
        
Gets an announcement via the unique_id and returns an Announement object,
if successful, else, will return None.
Gets an announcement via the unique_id and returns an Announement object if successful else will return None .
async def from_unique_id(cls, ctx, unique_id: int) -> typing.Optional[Announcement]:
        announcement_fetched = await ctx.bot.pool.fetchrow("SELECT * FROM main_site_announcement WHERE unique_id = $1", int(unique_id))
        if not announcement_fetched:
            return None
        return cls(dict(announcement_fetched))
async def from_unique_id ( cls , ctx , unique_id : int ) -> typing . Optional [ Announcement ] : announcement_fetched = await ctx . bot . pool . fetchrow ( "SELECT * FROM main_site_announcement WHERE unique_id = $1" , int ( unique_id ) ) if not announcement_fetched : return None return cls ( dict ( announcement_fetched ) )
Gets an announcement via the unique_id and returns an Announement object,
if successful, else, will return None.
Gets an announcement via the unique_id and returns an Announement object if successful else will return None .
""" Gets an announcement via the unique_id and returns an Announement object,
            if successful, else, will return None.
        """
cls
ctx
unique_id
int