async def edit(self, **fields):
try:<EOL><INDENT>icon_bytes = fields['<STR_LIT>']<EOL><DEDENT>except KeyError:<EOL><INDENT>pass<EOL><DEDENT>else:<EOL><INDENT>if icon_bytes is not None:<EOL><INDENT>fields['<STR_LIT>'] = utils._bytes_to_base64_data(icon_bytes)<EOL><DEDENT><DEDENT>data = await self._state.http.edit_group(self.id, **fields)<EOL>self._update_group(data)<EOL>
|coro|

        Edits the group.

        Parameters
        -----------
        name: Optional[:class:`str`]
            The new name to change the group to.
            Could be ``None`` to remove the name.
        icon: Optional[:class:`bytes`]
            A :term:`py:bytes-like object` representing the new icon.
            Could be ``None`` to remove the icon.

        Raises
        -------
        HTTPException
            Editing the group failed.