From 6b2e97c6c67f603519bdc3177219c47751791d67 Mon Sep 17 00:00:00 2001 From: dolfies Date: Tue, 17 Sep 2024 18:45:24 -0400 Subject: [PATCH] Fix removed protobuf library field --- discord/settings.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/discord/settings.py b/discord/settings.py index d39edabb7..df856e997 100644 --- a/discord/settings.py +++ b/discord/settings.py @@ -153,7 +153,7 @@ class _ProtoSettings: def to_dict(self, *, with_defaults: bool = False) -> Dict[str, Any]: return MessageToDict( self.settings, - including_default_value_fields=with_defaults, + always_print_fields_with_no_presence=with_defaults, preserving_proto_field_name=True, use_integers_for_enums=True, ) @@ -1825,10 +1825,6 @@ class LegacyUserSettings: The overall theme of the Discord UI. timezone_offset: :class:`int` The timezone offset to use. - view_nsfw_commands: :class:`bool` - Whether to show NSFW application commands in DMs. - - .. versionadded:: 2.0 view_nsfw_guilds: :class:`bool` Whether to show NSFW guilds on iOS.