Skip to content

Commit e90a5fd

Browse files
authored
fix: Embed.set_field_at doesn't update json (#1033)
1 parent 9ee4293 commit e90a5fd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

interactions/api/models/message.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,9 @@ def set_field_at(
512512
"""
513513

514514
try:
515-
self.fields[index] = EmbedField(name=name, value=value, inline=inline)
515+
fields = self.fields
516+
fields[index] = EmbedField(name=name, value=value, inline=inline)
517+
self.fields = fields
516518

517519
except AttributeError as e:
518520
raise AttributeError("No fields found in Embed") from e

0 commit comments

Comments
 (0)