Skip to content

Commit 7c9de39

Browse files
authored
fix: use localizations for InteractionCommand (#1724)
1 parent 33f8bdf commit 7c9de39

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

interactions/models/internal/application_commands.py

+2
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,8 @@ def _dm_permission_validator(self, attribute: str, value: bool) -> None:
288288
def to_dict(self) -> dict:
289289
data = super().to_dict()
290290

291+
data["name_localizations"] = self.name.to_locale_dict()
292+
291293
if self.default_member_permissions is not None:
292294
data["default_member_permissions"] = str(int(self.default_member_permissions))
293295
else:

0 commit comments

Comments
 (0)