def set_field_at(self, index, *, name, value, inline=True):
try:<EOL><INDENT>field = self._fields[index]<EOL><DEDENT>except (TypeError, IndexError, AttributeError):<EOL><INDENT>raise IndexError('<STR_LIT>')<EOL><DEDENT>field['<STR_LIT:name>'] = str(name)<EOL>field['<STR_LIT:value>'] = str(value)<EOL>field['<STR_LIT>'] = inline<EOL>return self<EOL>
Modifies a field to the embed object.

        The index must point to a valid pre-existing field.

        This function returns the class instance to allow for fluent-style
        chaining.

        Parameters
        -----------
        index: :class:`int`
            The index of the field to modify.
        name: :class:`str`
            The name of the field.
        value: :class:`str`
            The value of the field.
        inline: :class:`bool`
            Whether the field should be displayed inline.

        Raises
        -------
        IndexError
            An invalid index was provided.