async def handle_send_update_player_photo(p, item: Item): if item is None or (item.id in p.data.inventory and item.is_photo()): await p.set_photo(item)
async def handle_send_update_player_colour(p, item: Item): if item.id in p.data.inventory and item.is_color(): await p.set_color(item)
async def handle_send_update_player_flag(p, item: Item): if item is None or (item.id in p.inventory and item.is_flag()): await p.set_flag(item)