utils/announcements.py
async def delete(self, ctx, bot_id: int) -> typing.Optional[Announcement]:
        """ Deletes an announcement with check if bot id matches the announcement bot id. """
        return_announcement = self
        announcement_bot = await self.get_bot_object(ctx)
        if announcement_bot.id == bot_id:
            bot_id = await _get_unique_id(ctx, "BOT", bot_id)
            await ctx.bot.pool.execute("DELETE FROM main_site_announcement WHERE unique_id = $1 AND bot_id = $2", int(self.id), int(bot_id))
            return return_announcement

        return None
 Deletes an announcement with check if bot id matches the announcement bot id. 
Deletes an announcement with check if bot id matches the announcement bot id.
Deletes an announcement with check if bot id matches the announcement bot id .
async def delete(self, ctx, bot_id: int) -> typing.Optional[Announcement]:
        return_announcement = self
        announcement_bot = await self.get_bot_object(ctx)
        if announcement_bot.id == bot_id:
            bot_id = await _get_unique_id(ctx, "BOT", bot_id)
            await ctx.bot.pool.execute("DELETE FROM main_site_announcement WHERE unique_id = $1 AND bot_id = $2", int(self.id), int(bot_id))
            return return_announcement
        return None
async def delete ( self , ctx , bot_id : int ) -> typing . Optional [ Announcement ] : return_announcement = self announcement_bot = await self . get_bot_object ( ctx ) if announcement_bot . id == bot_id : bot_id = await _get_unique_id ( ctx , "BOT" , bot_id ) await ctx . bot . pool . execute ( "DELETE FROM main_site_announcement WHERE unique_id = $1 AND bot_id = $2" , int ( self . id ) , int ( bot_id ) ) return return_announcement return None
Deletes an announcement with check if bot id matches the announcement bot id.
Deletes an announcement with check if bot id matches the announcement bot id .
""" Deletes an announcement with check if bot id matches the announcement bot id. """
self
ctx
bot_id
int