def get_member_named(self, name):
result = None<EOL>members = self.members<EOL>if len(name) > <NUM_LIT:5> and name[-<NUM_LIT:5>] == '<STR_LIT:#>':<EOL><INDENT>potential_discriminator = name[-<NUM_LIT:4>:]<EOL>result = utils.get(members, name=name[:-<NUM_LIT:5>], discriminator=potential_discriminator)<EOL>if result is not None:<EOL><INDENT>return result<EOL><DEDENT><DEDENT>def pred(m):<EOL><INDENT>return m.nick == name or m.name == name<EOL><DEDENT>return utils.find(pred, members)<EOL>
Returns the first member found that matches the name provided.

        The name can have an optional discriminator argument, e.g. "Jake#0001"
        or "Jake" will both do the lookup. However the former will give a more
        precise result. Note that the discriminator must have all 4 digits
        for this to work.

        If a nickname is passed, then it is looked up via the nickname. Note
        however, that a nickname + discriminator combo will not lookup the nickname
        but rather the username + discriminator combo due to nickname + discriminator
        not being unique.

        If no member is found, ``None`` is returned.

        Parameters
        -----------
        name: :class:`str`
            The name of the member to lookup with an optional discriminator.

        Returns
        --------
        :class:`Member`
            The member in this guild with the associated name. If not found
            then ``None`` is returned.