async def edit_settings(self, **kwargs):
payload = {}<EOL>content_filter = kwargs.pop('<STR_LIT>', None)<EOL>if content_filter:<EOL><INDENT>payload.update({'<STR_LIT>': content_filter.value})<EOL><DEDENT>friend_flags = kwargs.pop('<STR_LIT>', None)<EOL>if friend_flags:<EOL><INDENT>dicts = [{}, {'<STR_LIT>': True}, {'<STR_LIT>': True},<EOL>{'<STR_LIT>': True, '<STR_LIT>': True}, {'<STR_LIT:all>': True}]<EOL>payload.update({'<STR_LIT>': dicts[friend_flags.value]})<EOL><DEDENT>guild_positions = kwargs.pop('<STR_LIT>', None)<EOL>if guild_positions:<EOL><INDENT>guild_positions = [str(x.id) for x in guild_positions]<EOL>payload.update({'<STR_LIT>': guild_positions})<EOL><DEDENT>restricted_guilds = kwargs.pop('<STR_LIT>', None)<EOL>if restricted_guilds:<EOL><INDENT>restricted_guilds = [str(x.id) for x in restricted_guilds]<EOL>payload.update({'<STR_LIT>': restricted_guilds})<EOL><DEDENT>status = kwargs.pop('<STR_LIT:status>', None)<EOL>if status:<EOL><INDENT>payload.update({'<STR_LIT:status>': status.value})<EOL><DEDENT>theme = kwargs.pop('<STR_LIT>', None)<EOL>if theme:<EOL><INDENT>payload.update({'<STR_LIT>': theme.value})<EOL><DEDENT>payload.update(kwargs)<EOL>data = await self._state.http.edit_settings(**payload)<EOL>return data<EOL>
|coro|

        Edits the client user's settings.

        .. note::

            This only applies to non-bot accounts.

        Parameters
        -------
        afk_timeout: :class:`int`
            How long (in seconds) the user needs to be AFK until Discord
            sends push notifications to your mobile device.
        animate_emojis: :class:`bool`
            Whether or not to animate emojis in the chat.
        convert_emoticons: :class:`bool`
            Whether or not to automatically convert emoticons into emojis.
            e.g. :-) -> 😃
        default_guilds_restricted: :class:`bool`
            Whether or not to automatically disable DMs between you and
            members of new guilds you join.
        detect_platform_accounts: :class:`bool`
            Whether or not to automatically detect accounts from services
            like Steam and Blizzard when you open the Discord client.
        developer_mode: :class:`bool`
            Whether or not to enable developer mode.
        disable_games_tab: :class:`bool`
            Whether or not to disable the showing of the Games tab.
        enable_tts_command: :class:`bool`
            Whether or not to allow tts messages to be played/sent.
        explicit_content_filter: :class:`UserContentFilter`
            The filter for explicit content in all messages.
        friend_source_flags: :class:`FriendFlags`
            Who can add you as a friend.
        gif_auto_play: :class:`bool`
            Whether or not to automatically play gifs that are in the chat.
        guild_positions: List[:class:`abc.Snowflake`]
            A list of guilds in order of the guild/guild icons that are on
            the left hand side of the UI.
        inline_attachment_media: :class:`bool`
            Whether or not to display attachments when they are uploaded in chat.
        inline_embed_media: :class:`bool`
            Whether or not to display videos and images from links posted in chat.
        locale: :class:`str`
            The RFC 3066 language identifier of the locale to use for the language
            of the Discord client.
        message_display_compact: :class:`bool`
            Whether or not to use the compact Discord display mode.
        render_embeds: :class:`bool`
            Whether or not to render embeds that are sent in the chat.
        render_reactions: :class:`bool`
            Whether or not to render reactions that are added to messages.
        restricted_guilds: List[:class:`abc.Snowflake`]
            A list of guilds that you will not receive DMs from.
        show_current_game: :class:`bool`
            Whether or not to display the game that you are currently playing.
        status: :class:`Status`
            The clients status that is shown to others.
        theme: :class:`Theme`
            The theme of the Discord UI.
        timezone_offset: :class:`int`
            The timezone offset to use.

        Raises
        -------
        HTTPException
            Editing the settings failed.
        Forbidden
            The client is a bot user and not a user account.

        Returns
        -------
        :class:`dict`
            The client user's updated settings.