diff --git a/discord/app_commands/translator.py b/discord/app_commands/translator.py index 34270c66c..a4ecefed6 100644 --- a/discord/app_commands/translator.py +++ b/discord/app_commands/translator.py @@ -171,6 +171,8 @@ class locale_str: Since these are passed via keyword arguments, the keys are strings. """ + __slots__ = ('__message', 'extras') + def __init__(self, message: str, /, **kwargs: Any) -> None: self.__message: str = message self.extras: dict[str, Any] = kwargs