Browse Source

Fix removed protobuf library field

pull/10109/head
dolfies 9 months ago
parent
commit
6b2e97c6c6
  1. 6
      discord/settings.py

6
discord/settings.py

@ -153,7 +153,7 @@ class _ProtoSettings:
def to_dict(self, *, with_defaults: bool = False) -> Dict[str, Any]: def to_dict(self, *, with_defaults: bool = False) -> Dict[str, Any]:
return MessageToDict( return MessageToDict(
self.settings, self.settings,
including_default_value_fields=with_defaults, always_print_fields_with_no_presence=with_defaults,
preserving_proto_field_name=True, preserving_proto_field_name=True,
use_integers_for_enums=True, use_integers_for_enums=True,
) )
@ -1825,10 +1825,6 @@ class LegacyUserSettings:
The overall theme of the Discord UI. The overall theme of the Discord UI.
timezone_offset: :class:`int` timezone_offset: :class:`int`
The timezone offset to use. 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` view_nsfw_guilds: :class:`bool`
Whether to show NSFW guilds on iOS. Whether to show NSFW guilds on iOS.

Loading…
Cancel
Save