def weapon_to_emoji(ctx, weapon: str):
    """ Retrieve custom emoji that represent a weapon

        Parameters
        ----------
        ctx: commands.Context
            context of server that create request
        weapon: str
            weapon to map

        Returns
        -------
        str
            Custom emoji of a weapon
        """
    wp = {
        'hunting-horn': 'hh',
        'long-sword': 'ls',
        'sword-and-shield': 'sns',
        'switch-axe': 'swax',
        'light-bowgun': 'lbg',
        'lance': 'lance',
        'insect-glaive': 'ig',
        'heavy-bowgun': 'hbg',
        'charge-blade': 'cb',
        'gunlance': 'gl',
        'dual-blades': 'db',
        'great-sword': 'gs',
        'hammer': 'hammer',
        'bow': 'bow',

    }
    e = ' '
    for emoji in ctx.guild.emojis:
        if (wp[weapon] == emoji.name) and (emoji.is_usable()):
            e = f'''<:{emoji.name}:{emoji.id}>'''
            break
    
    return e