discord-protos 1.0.3 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/update.yml +15 -6
- package/MANIFEST.in +4 -0
- package/README.md +45 -13
- package/{out → discord_protos}/FrecencyUserSettings.proto +5 -0
- package/discord_protos/FrecencyUserSettings_pb2.py +63 -0
- package/{out → discord_protos}/PreloadedUserSettings.proto +49 -0
- package/discord_protos/PreloadedUserSettings_pb2.py +119 -0
- package/discord_protos/__init__.py +26 -0
- package/dist/load.js +1 -1
- package/dist/parse.js +6 -1
- package/dist/proto/FrecencyUserSettings.d.ts +23 -0
- package/dist/proto/FrecencyUserSettings.js +64 -2
- package/dist/proto/PreloadedUserSettings.d.ts +203 -2
- package/dist/proto/PreloadedUserSettings.js +573 -165
- package/dist/proto/google/protobuf/wrappers.js +1 -1
- package/package.json +4 -4
- package/pyproject.toml +21 -0
- package/requirements.txt +1 -0
- package/setup.py +42 -0
- package/package-lock.json +0 -1755
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
name:
|
|
1
|
+
name: Update protobuf definitions
|
|
2
2
|
|
|
3
3
|
on:
|
|
4
4
|
workflow_dispatch:
|
|
@@ -14,17 +14,26 @@ jobs:
|
|
|
14
14
|
contents: write
|
|
15
15
|
|
|
16
16
|
steps:
|
|
17
|
-
-
|
|
17
|
+
- name: Checkout repository
|
|
18
|
+
uses: actions/checkout@v3
|
|
18
19
|
with:
|
|
19
20
|
ref: ${{ github.head_ref }}
|
|
20
|
-
|
|
21
|
+
|
|
22
|
+
- name: Install requirements
|
|
23
|
+
uses: actions/setup-node@v3
|
|
21
24
|
with:
|
|
22
25
|
node-version: 18
|
|
26
|
+
- uses: arduino/setup-protoc@v1
|
|
23
27
|
- run: npm install
|
|
24
|
-
|
|
28
|
+
|
|
29
|
+
- name: Load protobuf definitions
|
|
30
|
+
run: npm run load
|
|
25
31
|
- run: npm run build
|
|
32
|
+
- run: npm run js
|
|
33
|
+
- run: npm run py
|
|
26
34
|
- run: npm run test
|
|
27
35
|
|
|
28
|
-
-
|
|
36
|
+
- name: Commit changes
|
|
37
|
+
uses: stefanzweifel/git-auto-commit-action@v4
|
|
29
38
|
with:
|
|
30
|
-
commit_message: Update
|
|
39
|
+
commit_message: Update protobuf definitions
|
package/MANIFEST.in
ADDED
package/README.md
CHANGED
|
@@ -1,13 +1,18 @@
|
|
|
1
1
|
# Discord Protocol Buffers
|
|
2
2
|
Reverse-engineering Discord's user settings protobufs.
|
|
3
3
|
|
|
4
|
-
This repository provides protocol buffer files for Discord's user settings automatically generated and
|
|
4
|
+
This repository provides protocol buffer files for Discord's user settings automatically generated and automatically updated. The protobufs are provided as .proto files in the out/ directory, one file per settings type.
|
|
5
5
|
|
|
6
6
|
These protobufs are used by the Discord clients for user settings.
|
|
7
7
|
|
|
8
8
|
Provided for educational purposes only.
|
|
9
9
|
|
|
10
|
+
### Credits
|
|
11
|
+
|
|
12
|
+
- [arHSM](https://github.com/arHSM) for originally reverse-engineering the technology behind Discord's protobuf implementation.
|
|
13
|
+
|
|
10
14
|
## Usage
|
|
15
|
+
|
|
11
16
|
### Note
|
|
12
17
|
Automating user accounts is against the Discord ToS. This repository is a proof of concept and I cannot recommend using it. Do so at your own risk.
|
|
13
18
|
|
|
@@ -21,11 +26,14 @@ yarn add discord-protos
|
|
|
21
26
|
|
|
22
27
|
# with pnpm
|
|
23
28
|
pnpm add discord-protos
|
|
29
|
+
|
|
30
|
+
# with pip
|
|
31
|
+
pip install discord-protos
|
|
24
32
|
```
|
|
25
33
|
|
|
26
34
|
### Example
|
|
35
|
+
JavaScript:
|
|
27
36
|
```js
|
|
28
|
-
|
|
29
37
|
const { PreloadedUserSettings } = require('discord-protos');
|
|
30
38
|
|
|
31
39
|
const encoded = PreloadedUserSettings.toBase64({
|
|
@@ -35,9 +43,9 @@ const encoded = PreloadedUserSettings.toBase64({
|
|
|
35
43
|
},
|
|
36
44
|
customStatus: {
|
|
37
45
|
text: "Hello World",
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
46
|
+
emojiId: 0n,
|
|
47
|
+
emojiName: "",
|
|
48
|
+
expiresAtMs: 0n,
|
|
41
49
|
},
|
|
42
50
|
},
|
|
43
51
|
});
|
|
@@ -47,21 +55,45 @@ const decoded = PreloadedUserSettings.fromBase64(encoded);
|
|
|
47
55
|
console.log(encoded, decoded);
|
|
48
56
|
```
|
|
49
57
|
|
|
58
|
+
Python:
|
|
59
|
+
```py
|
|
60
|
+
import base64
|
|
61
|
+
from discord_protos import PreloadedUserSettings
|
|
62
|
+
|
|
63
|
+
settings = PreloadedUserSettings()
|
|
64
|
+
encoded = base64.b64encode(settings.ParseDict({
|
|
65
|
+
'status': {
|
|
66
|
+
'status': {
|
|
67
|
+
'value': 'online',
|
|
68
|
+
},
|
|
69
|
+
'custom_status': {
|
|
70
|
+
'text': 'Hello World',
|
|
71
|
+
'emoji_id': 0,
|
|
72
|
+
'emoji_name': '',
|
|
73
|
+
'expires_at_ms': 0,
|
|
74
|
+
},
|
|
75
|
+
},
|
|
76
|
+
}).SerializeToString())
|
|
77
|
+
|
|
78
|
+
decoded = PreloadedUserSettings.FromString(base64.b64decode(encoded))
|
|
79
|
+
|
|
80
|
+
print(encoded, decoded)
|
|
81
|
+
```
|
|
50
82
|
|
|
51
83
|
## Mapping
|
|
52
|
-
The following table shows which protobuf user settings correspond to which .proto file.
|
|
84
|
+
The following table shows which protobuf user settings correspond to which .proto file (the Python package also provides a `UserSettingsType` enum for convenience).
|
|
53
85
|
|
|
54
|
-
| Type
|
|
55
|
-
|
|
56
|
-
| 1
|
|
57
|
-
| 2
|
|
58
|
-
| 3
|
|
86
|
+
| Type | Value | File | Use |
|
|
87
|
+
| ---- | --------------------------------- | --------------------------- | -------------------------------------------------- |
|
|
88
|
+
| 1 | `PRELOADED_USER_SETTINGS` | PreloadedUserSettings.proto | General Discord user settings. |
|
|
89
|
+
| 2 | `FRECENCY_AND_FAVORITES_SETTINGS` | FrecencyUserSettings.proto | Frecency and favorites storage for various things. |
|
|
90
|
+
| 3 | `TEST_SETTINGS` | - | Unknown. |
|
|
59
91
|
|
|
60
92
|
|
|
61
93
|
### Protobufs
|
|
62
94
|
The .proto files can be compiled down to Python or JavaScript files by running `npm run py` or `npm run js`. This requires protoc to be installed.
|
|
63
95
|
|
|
64
|
-
Base64-encoded data for these protobufs are provided by the `GET /users/@me/settings-proto/{type}` endpoint. For preloaded user settings, base64-encoded data is provided in the `
|
|
96
|
+
Base64-encoded data for these protobufs are provided by the `GET /users/@me/settings-proto/{type}` endpoint. For preloaded user settings, base64-encoded data is provided in the `user_settings_proto` key of the READY event received in the Discord Gateway, as well as in USER_SETTINGS_PROTO_UPDATE events.
|
|
65
97
|
|
|
66
98
|
### Development
|
|
67
|
-
Running
|
|
99
|
+
Running `pnpm load` will extract and save the latest protobufs to the discord_protos/ directory.
|
|
@@ -55,6 +55,10 @@ message FrecencyUserSettings {
|
|
|
55
55
|
map<string, FrecencyItem> application_commands = 1;
|
|
56
56
|
}
|
|
57
57
|
|
|
58
|
+
message FavoriteSoundboardSounds {
|
|
59
|
+
repeated fixed64 sound_ids = 1;
|
|
60
|
+
}
|
|
61
|
+
|
|
58
62
|
optional Versions versions = 1;
|
|
59
63
|
optional FavoriteGIFs favorite_gifs = 2;
|
|
60
64
|
optional FavoriteStickers favorite_stickers = 3;
|
|
@@ -62,4 +66,5 @@ message FrecencyUserSettings {
|
|
|
62
66
|
optional FavoriteEmojis favorite_emojis = 5;
|
|
63
67
|
optional EmojiFrecency emoji_frecency = 6;
|
|
64
68
|
optional ApplicationCommandFrecency application_command_frecency = 7;
|
|
69
|
+
optional FavoriteSoundboardSounds favorite_soundboard_sounds = 8;
|
|
65
70
|
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: FrecencyUserSettings.proto
|
|
4
|
+
"""Generated protocol buffer code."""
|
|
5
|
+
from google.protobuf.internal import builder as _builder
|
|
6
|
+
from google.protobuf import descriptor as _descriptor
|
|
7
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
8
|
+
from google.protobuf import symbol_database as _symbol_database
|
|
9
|
+
# @@protoc_insertion_point(imports)
|
|
10
|
+
|
|
11
|
+
_sym_db = _symbol_database.Default()
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1a\x46recencyUserSettings.proto\x12\x34\x64iscord_protos.discord_users.v1.FrecencyUserSettings\"\xd0\x16\n\x14\x46recencyUserSettings\x12j\n\x08versions\x18\x01 \x01(\x0b\x32S.discord_protos.discord_users.v1.FrecencyUserSettings.FrecencyUserSettings.VersionsH\x00\x88\x01\x01\x12s\n\rfavorite_gifs\x18\x02 \x01(\x0b\x32W.discord_protos.discord_users.v1.FrecencyUserSettings.FrecencyUserSettings.FavoriteGIFsH\x01\x88\x01\x01\x12{\n\x11\x66\x61vorite_stickers\x18\x03 \x01(\x0b\x32[.discord_protos.discord_users.v1.FrecencyUserSettings.FrecencyUserSettings.FavoriteStickersH\x02\x88\x01\x01\x12y\n\x10sticker_frecency\x18\x04 \x01(\x0b\x32Z.discord_protos.discord_users.v1.FrecencyUserSettings.FrecencyUserSettings.StickerFrecencyH\x03\x88\x01\x01\x12w\n\x0f\x66\x61vorite_emojis\x18\x05 \x01(\x0b\x32Y.discord_protos.discord_users.v1.FrecencyUserSettings.FrecencyUserSettings.FavoriteEmojisH\x04\x88\x01\x01\x12u\n\x0e\x65moji_frecency\x18\x06 \x01(\x0b\x32X.discord_protos.discord_users.v1.FrecencyUserSettings.FrecencyUserSettings.EmojiFrecencyH\x05\x88\x01\x01\x12\x90\x01\n\x1c\x61pplication_command_frecency\x18\x07 \x01(\x0b\x32\x65.discord_protos.discord_users.v1.FrecencyUserSettings.FrecencyUserSettings.ApplicationCommandFrecencyH\x06\x88\x01\x01\x12\x8c\x01\n\x1a\x66\x61vorite_soundboard_sounds\x18\x08 \x01(\x0b\x32\x63.discord_protos.discord_users.v1.FrecencyUserSettings.FrecencyUserSettings.FavoriteSoundboardSoundsH\x07\x88\x01\x01\x1aP\n\x08Versions\x12\x16\n\x0e\x63lient_version\x18\x01 \x01(\r\x12\x16\n\x0eserver_version\x18\x02 \x01(\r\x12\x14\n\x0c\x64\x61ta_version\x18\x03 \x01(\r\x1a\xac\x01\n\x0b\x46\x61voriteGIF\x12\x62\n\x06\x66ormat\x18\x01 \x01(\x0e\x32R.discord_protos.discord_users.v1.FrecencyUserSettings.FrecencyUserSettings.GIFType\x12\x0b\n\x03src\x18\x02 \x01(\t\x12\r\n\x05width\x18\x03 \x01(\r\x12\x0e\n\x06height\x18\x04 \x01(\r\x12\r\n\x05order\x18\x05 \x01(\r\x1a\x9b\x02\n\x0c\x46\x61voriteGIFs\x12o\n\x04gifs\x18\x01 \x03(\x0b\x32\x61.discord_protos.discord_users.v1.FrecencyUserSettings.FrecencyUserSettings.FavoriteGIFs.GifsEntry\x12\x14\n\x0chide_tooltip\x18\x02 \x01(\x08\x1a\x83\x01\n\tGifsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x65\n\x05value\x18\x02 \x01(\x0b\x32V.discord_protos.discord_users.v1.FrecencyUserSettings.FrecencyUserSettings.FavoriteGIF:\x02\x38\x01\x1a\'\n\x10\x46\x61voriteStickers\x12\x13\n\x0bsticker_ids\x18\x01 \x03(\x06\x1aX\n\x0c\x46recencyItem\x12\x12\n\ntotal_uses\x18\x01 \x01(\r\x12\x13\n\x0brecent_uses\x18\x02 \x03(\x04\x12\x10\n\x08\x66recency\x18\x03 \x01(\x05\x12\r\n\x05score\x18\x04 \x01(\x05\x1a\x98\x02\n\x0fStickerFrecency\x12z\n\x08stickers\x18\x01 \x03(\x0b\x32h.discord_protos.discord_users.v1.FrecencyUserSettings.FrecencyUserSettings.StickerFrecency.StickersEntry\x1a\x88\x01\n\rStickersEntry\x12\x0b\n\x03key\x18\x01 \x01(\x06\x12\x66\n\x05value\x18\x02 \x01(\x0b\x32W.discord_protos.discord_users.v1.FrecencyUserSettings.FrecencyUserSettings.FrecencyItem:\x02\x38\x01\x1a \n\x0e\x46\x61voriteEmojis\x12\x0e\n\x06\x65mojis\x18\x01 \x03(\t\x1a\x8e\x02\n\rEmojiFrecency\x12t\n\x06\x65mojis\x18\x01 \x03(\x0b\x32\x64.discord_protos.discord_users.v1.FrecencyUserSettings.FrecencyUserSettings.EmojiFrecency.EmojisEntry\x1a\x86\x01\n\x0b\x45mojisEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x66\n\x05value\x18\x02 \x01(\x0b\x32W.discord_protos.discord_users.v1.FrecencyUserSettings.FrecencyUserSettings.FrecencyItem:\x02\x38\x01\x1a\xd1\x02\n\x1a\x41pplicationCommandFrecency\x12\x9c\x01\n\x14\x61pplication_commands\x18\x01 \x03(\x0b\x32~.discord_protos.discord_users.v1.FrecencyUserSettings.FrecencyUserSettings.ApplicationCommandFrecency.ApplicationCommandsEntry\x1a\x93\x01\n\x18\x41pplicationCommandsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x66\n\x05value\x18\x02 \x01(\x0b\x32W.discord_protos.discord_users.v1.FrecencyUserSettings.FrecencyUserSettings.FrecencyItem:\x02\x38\x01\x1a-\n\x18\x46\x61voriteSoundboardSounds\x12\x11\n\tsound_ids\x18\x01 \x03(\x06\")\n\x07GIFType\x12\x08\n\x04NONE\x10\x00\x12\t\n\x05IMAGE\x10\x01\x12\t\n\x05VIDEO\x10\x02\x42\x0b\n\t_versionsB\x10\n\x0e_favorite_gifsB\x14\n\x12_favorite_stickersB\x13\n\x11_sticker_frecencyB\x12\n\x10_favorite_emojisB\x11\n\x0f_emoji_frecencyB\x1f\n\x1d_application_command_frecencyB\x1d\n\x1b_favorite_soundboard_soundsb\x06proto3')
|
|
17
|
+
|
|
18
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals())
|
|
19
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'FrecencyUserSettings_pb2', globals())
|
|
20
|
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
|
21
|
+
|
|
22
|
+
DESCRIPTOR._options = None
|
|
23
|
+
_FRECENCYUSERSETTINGS_FAVORITEGIFS_GIFSENTRY._options = None
|
|
24
|
+
_FRECENCYUSERSETTINGS_FAVORITEGIFS_GIFSENTRY._serialized_options = b'8\001'
|
|
25
|
+
_FRECENCYUSERSETTINGS_STICKERFRECENCY_STICKERSENTRY._options = None
|
|
26
|
+
_FRECENCYUSERSETTINGS_STICKERFRECENCY_STICKERSENTRY._serialized_options = b'8\001'
|
|
27
|
+
_FRECENCYUSERSETTINGS_EMOJIFRECENCY_EMOJISENTRY._options = None
|
|
28
|
+
_FRECENCYUSERSETTINGS_EMOJIFRECENCY_EMOJISENTRY._serialized_options = b'8\001'
|
|
29
|
+
_FRECENCYUSERSETTINGS_APPLICATIONCOMMANDFRECENCY_APPLICATIONCOMMANDSENTRY._options = None
|
|
30
|
+
_FRECENCYUSERSETTINGS_APPLICATIONCOMMANDFRECENCY_APPLICATIONCOMMANDSENTRY._serialized_options = b'8\001'
|
|
31
|
+
_FRECENCYUSERSETTINGS._serialized_start=85
|
|
32
|
+
_FRECENCYUSERSETTINGS._serialized_end=2981
|
|
33
|
+
_FRECENCYUSERSETTINGS_VERSIONS._serialized_start=1112
|
|
34
|
+
_FRECENCYUSERSETTINGS_VERSIONS._serialized_end=1192
|
|
35
|
+
_FRECENCYUSERSETTINGS_FAVORITEGIF._serialized_start=1195
|
|
36
|
+
_FRECENCYUSERSETTINGS_FAVORITEGIF._serialized_end=1367
|
|
37
|
+
_FRECENCYUSERSETTINGS_FAVORITEGIFS._serialized_start=1370
|
|
38
|
+
_FRECENCYUSERSETTINGS_FAVORITEGIFS._serialized_end=1653
|
|
39
|
+
_FRECENCYUSERSETTINGS_FAVORITEGIFS_GIFSENTRY._serialized_start=1522
|
|
40
|
+
_FRECENCYUSERSETTINGS_FAVORITEGIFS_GIFSENTRY._serialized_end=1653
|
|
41
|
+
_FRECENCYUSERSETTINGS_FAVORITESTICKERS._serialized_start=1655
|
|
42
|
+
_FRECENCYUSERSETTINGS_FAVORITESTICKERS._serialized_end=1694
|
|
43
|
+
_FRECENCYUSERSETTINGS_FRECENCYITEM._serialized_start=1696
|
|
44
|
+
_FRECENCYUSERSETTINGS_FRECENCYITEM._serialized_end=1784
|
|
45
|
+
_FRECENCYUSERSETTINGS_STICKERFRECENCY._serialized_start=1787
|
|
46
|
+
_FRECENCYUSERSETTINGS_STICKERFRECENCY._serialized_end=2067
|
|
47
|
+
_FRECENCYUSERSETTINGS_STICKERFRECENCY_STICKERSENTRY._serialized_start=1931
|
|
48
|
+
_FRECENCYUSERSETTINGS_STICKERFRECENCY_STICKERSENTRY._serialized_end=2067
|
|
49
|
+
_FRECENCYUSERSETTINGS_FAVORITEEMOJIS._serialized_start=2069
|
|
50
|
+
_FRECENCYUSERSETTINGS_FAVORITEEMOJIS._serialized_end=2101
|
|
51
|
+
_FRECENCYUSERSETTINGS_EMOJIFRECENCY._serialized_start=2104
|
|
52
|
+
_FRECENCYUSERSETTINGS_EMOJIFRECENCY._serialized_end=2374
|
|
53
|
+
_FRECENCYUSERSETTINGS_EMOJIFRECENCY_EMOJISENTRY._serialized_start=2240
|
|
54
|
+
_FRECENCYUSERSETTINGS_EMOJIFRECENCY_EMOJISENTRY._serialized_end=2374
|
|
55
|
+
_FRECENCYUSERSETTINGS_APPLICATIONCOMMANDFRECENCY._serialized_start=2377
|
|
56
|
+
_FRECENCYUSERSETTINGS_APPLICATIONCOMMANDFRECENCY._serialized_end=2714
|
|
57
|
+
_FRECENCYUSERSETTINGS_APPLICATIONCOMMANDFRECENCY_APPLICATIONCOMMANDSENTRY._serialized_start=2567
|
|
58
|
+
_FRECENCYUSERSETTINGS_APPLICATIONCOMMANDFRECENCY_APPLICATIONCOMMANDSENTRY._serialized_end=2714
|
|
59
|
+
_FRECENCYUSERSETTINGS_FAVORITESOUNDBOARDSOUNDS._serialized_start=2716
|
|
60
|
+
_FRECENCYUSERSETTINGS_FAVORITESOUNDBOARDSOUNDS._serialized_end=2761
|
|
61
|
+
_FRECENCYUSERSETTINGS_GIFTYPE._serialized_start=2763
|
|
62
|
+
_FRECENCYUSERSETTINGS_GIFTYPE._serialized_end=2804
|
|
63
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -25,8 +25,25 @@ message PreloadedUserSettings {
|
|
|
25
25
|
bool viewed_tutorial = 2;
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
+
message ChannelIconEmoji {
|
|
29
|
+
optional google.protobuf.UInt64Value id = 1;
|
|
30
|
+
optional google.protobuf.StringValue name = 2;
|
|
31
|
+
optional google.protobuf.UInt64Value color = 3;
|
|
32
|
+
}
|
|
33
|
+
|
|
28
34
|
message ChannelSettings {
|
|
29
35
|
bool collapsed_in_inbox = 1;
|
|
36
|
+
optional ChannelIconEmoji icon_emoji = 2;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
message CustomCallSound {
|
|
40
|
+
fixed64 sound_id = 1;
|
|
41
|
+
fixed64 guild_id = 2;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
message ChannelListSettings {
|
|
45
|
+
optional google.protobuf.StringValue layout = 1;
|
|
46
|
+
optional google.protobuf.StringValue message_previews = 2;
|
|
30
47
|
}
|
|
31
48
|
|
|
32
49
|
message GuildSettings {
|
|
@@ -35,6 +52,10 @@ message PreloadedUserSettings {
|
|
|
35
52
|
uint32 guild_onboarding_progress = 3;
|
|
36
53
|
optional google.protobuf.Timestamp guild_recents_dismissed_at = 4;
|
|
37
54
|
bytes dismissed_guild_content = 5;
|
|
55
|
+
optional CustomCallSound join_sound = 6;
|
|
56
|
+
optional ChannelListSettings mobile_redesign_channel_list_settings = 7;
|
|
57
|
+
bool disable_raid_alert_push = 8;
|
|
58
|
+
bool disable_raid_alert_nag = 9;
|
|
38
59
|
}
|
|
39
60
|
|
|
40
61
|
message AllGuildSettings {
|
|
@@ -45,6 +66,8 @@ message PreloadedUserSettings {
|
|
|
45
66
|
bytes dismissed_contents = 1;
|
|
46
67
|
optional google.protobuf.StringValue last_dismissed_outbound_promotion_start_date = 2;
|
|
47
68
|
optional google.protobuf.Timestamp premium_tier_0_modal_dismissed_at = 3;
|
|
69
|
+
optional google.protobuf.Timestamp guild_onboarding_upsell_dismissed_at = 4;
|
|
70
|
+
optional google.protobuf.Timestamp safety_user_sentiment_notice_dismissed_at = 5;
|
|
48
71
|
}
|
|
49
72
|
|
|
50
73
|
message VideoFilterBackgroundBlur {
|
|
@@ -71,6 +94,13 @@ message PreloadedUserSettings {
|
|
|
71
94
|
optional SoundboardSettings soundboard_settings = 9;
|
|
72
95
|
}
|
|
73
96
|
|
|
97
|
+
enum DmSpamFilterV2 {
|
|
98
|
+
DEFAULT_UNSET = 0;
|
|
99
|
+
DISABLED = 1;
|
|
100
|
+
NON_FRIENDS = 2;
|
|
101
|
+
FRIENDS_AND_NON_FRIENDS = 3;
|
|
102
|
+
}
|
|
103
|
+
|
|
74
104
|
message TextAndImagesSettings {
|
|
75
105
|
optional google.protobuf.StringValue diversity_surrogate = 1;
|
|
76
106
|
optional google.protobuf.BoolValue use_rich_chat_input = 2;
|
|
@@ -95,12 +125,17 @@ message PreloadedUserSettings {
|
|
|
95
125
|
optional google.protobuf.BoolValue expression_suggestions_enabled = 22;
|
|
96
126
|
optional google.protobuf.BoolValue view_nsfw_commands = 23;
|
|
97
127
|
optional google.protobuf.BoolValue use_legacy_chat_input = 24;
|
|
128
|
+
repeated string soundboard_picker_collapsed_sections = 25;
|
|
129
|
+
optional google.protobuf.UInt32Value dm_spam_filter = 26;
|
|
130
|
+
DmSpamFilterV2 dm_spam_filter_v2 = 27;
|
|
131
|
+
optional google.protobuf.BoolValue include_stickers_in_autocomplete = 28;
|
|
98
132
|
}
|
|
99
133
|
|
|
100
134
|
message NotificationSettings {
|
|
101
135
|
optional google.protobuf.BoolValue show_in_app_notifications = 1;
|
|
102
136
|
optional google.protobuf.BoolValue notify_friends_on_go_live = 2;
|
|
103
137
|
fixed64 notification_center_acked_before_id = 3;
|
|
138
|
+
optional google.protobuf.BoolValue enable_burst_reaction_notifications = 4;
|
|
104
139
|
}
|
|
105
140
|
|
|
106
141
|
enum GuildActivityStatusRestrictionDefault {
|
|
@@ -126,6 +161,9 @@ message PreloadedUserSettings {
|
|
|
126
161
|
optional google.protobuf.BoolValue default_message_request_restricted = 17;
|
|
127
162
|
optional google.protobuf.BoolValue drops_opted_out = 18;
|
|
128
163
|
optional google.protobuf.BoolValue non_spam_retraining_opt_in = 19;
|
|
164
|
+
optional google.protobuf.BoolValue family_center_enabled = 20;
|
|
165
|
+
optional google.protobuf.BoolValue family_center_enabled_v2 = 21;
|
|
166
|
+
optional google.protobuf.BoolValue hide_legacy_username = 22;
|
|
129
167
|
}
|
|
130
168
|
|
|
131
169
|
message DebugSettings {
|
|
@@ -173,6 +211,8 @@ message PreloadedUserSettings {
|
|
|
173
211
|
bool developer_mode = 2;
|
|
174
212
|
optional ClientThemeSettings client_theme_settings = 3;
|
|
175
213
|
bool mobile_redesign_disabled = 4;
|
|
214
|
+
optional google.protobuf.StringValue channel_list_layout = 6;
|
|
215
|
+
optional google.protobuf.StringValue message_previews = 7;
|
|
176
216
|
}
|
|
177
217
|
|
|
178
218
|
message GuildFolder {
|
|
@@ -209,6 +249,7 @@ message PreloadedUserSettings {
|
|
|
209
249
|
bool muted = 1;
|
|
210
250
|
float volume = 2;
|
|
211
251
|
fixed64 modified_at = 3;
|
|
252
|
+
bool soundboard_muted = 4;
|
|
212
253
|
}
|
|
213
254
|
|
|
214
255
|
message AudioSettings {
|
|
@@ -220,6 +261,13 @@ message PreloadedUserSettings {
|
|
|
220
261
|
optional google.protobuf.BoolValue disable_home_auto_nav = 1;
|
|
221
262
|
}
|
|
222
263
|
|
|
264
|
+
message BroadcastSettings {
|
|
265
|
+
optional google.protobuf.BoolValue allow_friends = 1;
|
|
266
|
+
repeated fixed64 allowed_guild_ids = 2;
|
|
267
|
+
repeated fixed64 allowed_user_ids = 3;
|
|
268
|
+
optional google.protobuf.BoolValue auto_broadcast = 4;
|
|
269
|
+
}
|
|
270
|
+
|
|
223
271
|
optional Versions versions = 1;
|
|
224
272
|
optional InboxSettings inbox = 2;
|
|
225
273
|
optional AllGuildSettings guilds = 3;
|
|
@@ -237,4 +285,5 @@ message PreloadedUserSettings {
|
|
|
237
285
|
optional Favorites favorites = 15;
|
|
238
286
|
optional AudioSettings audio_context_settings = 16;
|
|
239
287
|
optional CommunitiesSettings communities = 17;
|
|
288
|
+
optional BroadcastSettings broadcast = 18;
|
|
240
289
|
}
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: PreloadedUserSettings.proto
|
|
4
|
+
"""Generated protocol buffer code."""
|
|
5
|
+
from google.protobuf.internal import builder as _builder
|
|
6
|
+
from google.protobuf import descriptor as _descriptor
|
|
7
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
8
|
+
from google.protobuf import symbol_database as _symbol_database
|
|
9
|
+
# @@protoc_insertion_point(imports)
|
|
10
|
+
|
|
11
|
+
_sym_db = _symbol_database.Default()
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2
|
|
15
|
+
from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1bPreloadedUserSettings.proto\x12\x35\x64iscord_protos.discord_users.v1.PreloadedUserSettings\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xf7o\n\x15PreloadedUserSettings\x12l\n\x08versions\x18\x01 \x01(\x0b\x32U.discord_protos.discord_users.v1.PreloadedUserSettings.PreloadedUserSettings.VersionsH\x00\x88\x01\x01\x12n\n\x05inbox\x18\x02 \x01(\x0b\x32Z.discord_protos.discord_users.v1.PreloadedUserSettings.PreloadedUserSettings.InboxSettingsH\x01\x88\x01\x01\x12r\n\x06guilds\x18\x03 \x01(\x0b\x32].discord_protos.discord_users.v1.PreloadedUserSettings.PreloadedUserSettings.AllGuildSettingsH\x02\x88\x01\x01\x12{\n\x0cuser_content\x18\x04 \x01(\x0b\x32`.discord_protos.discord_users.v1.PreloadedUserSettings.PreloadedUserSettings.UserContentSettingsH\x03\x88\x01\x01\x12\x80\x01\n\x0fvoice_and_video\x18\x05 \x01(\x0b\x32\x62.discord_protos.discord_users.v1.PreloadedUserSettings.PreloadedUserSettings.VoiceAndVideoSettingsH\x04\x88\x01\x01\x12\x80\x01\n\x0ftext_and_images\x18\x06 \x01(\x0b\x32\x62.discord_protos.discord_users.v1.PreloadedUserSettings.PreloadedUserSettings.TextAndImagesSettingsH\x05\x88\x01\x01\x12}\n\rnotifications\x18\x07 \x01(\x0b\x32\x61.discord_protos.discord_users.v1.PreloadedUserSettings.PreloadedUserSettings.NotificationSettingsH\x06\x88\x01\x01\x12r\n\x07privacy\x18\x08 \x01(\x0b\x32\\.discord_protos.discord_users.v1.PreloadedUserSettings.PreloadedUserSettings.PrivacySettingsH\x07\x88\x01\x01\x12n\n\x05\x64\x65\x62ug\x18\t \x01(\x0b\x32Z.discord_protos.discord_users.v1.PreloadedUserSettings.PreloadedUserSettings.DebugSettingsH\x08\x88\x01\x01\x12{\n\x0cgame_library\x18\n \x01(\x0b\x32`.discord_protos.discord_users.v1.PreloadedUserSettings.PreloadedUserSettings.GameLibrarySettingsH\t\x88\x01\x01\x12p\n\x06status\x18\x0b \x01(\x0b\x32[.discord_protos.discord_users.v1.PreloadedUserSettings.PreloadedUserSettings.StatusSettingsH\n\x88\x01\x01\x12|\n\x0clocalization\x18\x0c \x01(\x0b\x32\x61.discord_protos.discord_users.v1.PreloadedUserSettings.PreloadedUserSettings.LocalizationSettingsH\x0b\x88\x01\x01\x12x\n\nappearance\x18\r \x01(\x0b\x32_.discord_protos.discord_users.v1.PreloadedUserSettings.PreloadedUserSettings.AppearanceSettingsH\x0c\x88\x01\x01\x12u\n\rguild_folders\x18\x0e \x01(\x0b\x32Y.discord_protos.discord_users.v1.PreloadedUserSettings.PreloadedUserSettings.GuildFoldersH\r\x88\x01\x01\x12n\n\tfavorites\x18\x0f \x01(\x0b\x32V.discord_protos.discord_users.v1.PreloadedUserSettings.PreloadedUserSettings.FavoritesH\x0e\x88\x01\x01\x12\x7f\n\x16\x61udio_context_settings\x18\x10 \x01(\x0b\x32Z.discord_protos.discord_users.v1.PreloadedUserSettings.PreloadedUserSettings.AudioSettingsH\x0f\x88\x01\x01\x12z\n\x0b\x63ommunities\x18\x11 \x01(\x0b\x32`.discord_protos.discord_users.v1.PreloadedUserSettings.PreloadedUserSettings.CommunitiesSettingsH\x10\x88\x01\x01\x12v\n\tbroadcast\x18\x12 \x01(\x0b\x32^.discord_protos.discord_users.v1.PreloadedUserSettings.PreloadedUserSettings.BroadcastSettingsH\x11\x88\x01\x01\x1aP\n\x08Versions\x12\x16\n\x0e\x63lient_version\x18\x01 \x01(\r\x12\x16\n\x0eserver_version\x18\x02 \x01(\r\x12\x14\n\x0c\x64\x61ta_version\x18\x03 \x01(\r\x1a\x94\x01\n\rInboxSettings\x12j\n\x0b\x63urrent_tab\x18\x01 \x01(\x0e\x32U.discord_protos.discord_users.v1.PreloadedUserSettings.PreloadedUserSettings.InboxTab\x12\x17\n\x0fviewed_tutorial\x18\x02 \x01(\x08\x1a\xbe\x01\n\x10\x43hannelIconEmoji\x12-\n\x02id\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.UInt64ValueH\x00\x88\x01\x01\x12/\n\x04name\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValueH\x01\x88\x01\x01\x12\x30\n\x05\x63olor\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.UInt64ValueH\x02\x88\x01\x01\x42\x05\n\x03_idB\x07\n\x05_nameB\x08\n\x06_color\x1a\xb4\x01\n\x0f\x43hannelSettings\x12\x1a\n\x12\x63ollapsed_in_inbox\x18\x01 \x01(\x08\x12v\n\nicon_emoji\x18\x02 \x01(\x0b\x32].discord_protos.discord_users.v1.PreloadedUserSettings.PreloadedUserSettings.ChannelIconEmojiH\x00\x88\x01\x01\x42\r\n\x0b_icon_emoji\x1a\x35\n\x0f\x43ustomCallSound\x12\x10\n\x08sound_id\x18\x01 \x01(\x06\x12\x10\n\x08guild_id\x18\x02 \x01(\x06\x1a\xa5\x01\n\x13\x43hannelListSettings\x12\x31\n\x06layout\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValueH\x00\x88\x01\x01\x12;\n\x10message_previews\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValueH\x01\x88\x01\x01\x42\t\n\x07_layoutB\x13\n\x11_message_previews\x1a\xe1\x06\n\rGuildSettings\x12z\n\x08\x63hannels\x18\x01 \x03(\x0b\x32h.discord_protos.discord_users.v1.PreloadedUserSettings.PreloadedUserSettings.GuildSettings.ChannelsEntry\x12\x14\n\x0chub_progress\x18\x02 \x01(\r\x12!\n\x19guild_onboarding_progress\x18\x03 \x01(\r\x12\x43\n\x1aguild_recents_dismissed_at\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x00\x88\x01\x01\x12\x1f\n\x17\x64ismissed_guild_content\x18\x05 \x01(\x0c\x12u\n\njoin_sound\x18\x06 \x01(\x0b\x32\\.discord_protos.discord_users.v1.PreloadedUserSettings.PreloadedUserSettings.CustomCallSoundH\x01\x88\x01\x01\x12\x94\x01\n%mobile_redesign_channel_list_settings\x18\x07 \x01(\x0b\x32`.discord_protos.discord_users.v1.PreloadedUserSettings.PreloadedUserSettings.ChannelListSettingsH\x02\x88\x01\x01\x12\x1f\n\x17\x64isable_raid_alert_push\x18\x08 \x01(\x08\x12\x1e\n\x16\x64isable_raid_alert_nag\x18\t \x01(\x08\x1a\x8d\x01\n\rChannelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\x06\x12k\n\x05value\x18\x02 \x01(\x0b\x32\\.discord_protos.discord_users.v1.PreloadedUserSettings.PreloadedUserSettings.ChannelSettings:\x02\x38\x01\x42\x1d\n\x1b_guild_recents_dismissed_atB\r\n\x0b_join_soundB(\n&_mobile_redesign_channel_list_settings\x1a\x99\x02\n\x10\x41llGuildSettings\x12y\n\x06guilds\x18\x01 \x03(\x0b\x32i.discord_protos.discord_users.v1.PreloadedUserSettings.PreloadedUserSettings.AllGuildSettings.GuildsEntry\x1a\x89\x01\n\x0bGuildsEntry\x12\x0b\n\x03key\x18\x01 \x01(\x06\x12i\n\x05value\x18\x02 \x01(\x0b\x32Z.discord_protos.discord_users.v1.PreloadedUserSettings.PreloadedUserSettings.GuildSettings:\x02\x38\x01\x1a\xa7\x04\n\x13UserContentSettings\x12\x1a\n\x12\x64ismissed_contents\x18\x01 \x01(\x0c\x12W\n,last_dismissed_outbound_promotion_start_date\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValueH\x00\x88\x01\x01\x12J\n!premium_tier_0_modal_dismissed_at\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x01\x88\x01\x01\x12M\n$guild_onboarding_upsell_dismissed_at\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x02\x88\x01\x01\x12R\n)safety_user_sentiment_notice_dismissed_at\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x03\x88\x01\x01\x42/\n-_last_dismissed_outbound_promotion_start_dateB$\n\"_premium_tier_0_modal_dismissed_atB\'\n%_guild_onboarding_upsell_dismissed_atB,\n*_safety_user_sentiment_notice_dismissed_at\x1a-\n\x19VideoFilterBackgroundBlur\x12\x10\n\x08use_blur\x18\x01 \x01(\x08\x1a\x32\n\x10VideoFilterAsset\x12\n\n\x02id\x18\x01 \x01(\x06\x12\x12\n\nasset_hash\x18\x02 \x01(\t\x1a$\n\x12SoundboardSettings\x12\x0e\n\x06volume\x18\x01 \x01(\x02\x1a\xad\x06\n\x15VoiceAndVideoSettings\x12t\n\x04\x62lur\x18\x01 \x01(\x0b\x32\x66.discord_protos.discord_users.v1.PreloadedUserSettings.PreloadedUserSettings.VideoFilterBackgroundBlur\x12\x15\n\rpreset_option\x18\x02 \x01(\r\x12s\n\x0c\x63ustom_asset\x18\x03 \x01(\x0b\x32].discord_protos.discord_users.v1.PreloadedUserSettings.PreloadedUserSettings.VideoFilterAsset\x12=\n\x14\x61lways_preview_video\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.BoolValueH\x00\x88\x01\x01\x12\x36\n\x0b\x61\x66k_timeout\x18\x06 \x01(\x0b\x32\x1c.google.protobuf.UInt32ValueH\x01\x88\x01\x01\x12\x45\n\x1cstream_notifications_enabled\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.BoolValueH\x02\x88\x01\x01\x12I\n native_phone_integration_enabled\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.BoolValueH\x03\x88\x01\x01\x12\x81\x01\n\x13soundboard_settings\x18\t \x01(\x0b\x32_.discord_protos.discord_users.v1.PreloadedUserSettings.PreloadedUserSettings.SoundboardSettingsH\x04\x88\x01\x01\x42\x17\n\x15_always_preview_videoB\x0e\n\x0c_afk_timeoutB\x1f\n\x1d_stream_notifications_enabledB#\n!_native_phone_integration_enabledB\x16\n\x14_soundboard_settings\x1a\xdf\x11\n\x15TextAndImagesSettings\x12>\n\x13\x64iversity_surrogate\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValueH\x00\x88\x01\x01\x12<\n\x13use_rich_chat_input\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.BoolValueH\x01\x88\x01\x01\x12;\n\x12use_thread_sidebar\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.BoolValueH\x02\x88\x01\x01\x12:\n\x0frender_spoilers\x18\x04 \x01(\x0b\x32\x1c.google.protobuf.StringValueH\x03\x88\x01\x01\x12\'\n\x1f\x65moji_picker_collapsed_sections\x18\x05 \x03(\t\x12)\n!sticker_picker_collapsed_sections\x18\x06 \x03(\t\x12@\n\x17view_image_descriptions\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.BoolValueH\x04\x88\x01\x01\x12\x41\n\x18show_command_suggestions\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.BoolValueH\x05\x88\x01\x01\x12@\n\x17inline_attachment_media\x18\t \x01(\x0b\x32\x1a.google.protobuf.BoolValueH\x06\x88\x01\x01\x12;\n\x12inline_embed_media\x18\n \x01(\x0b\x32\x1a.google.protobuf.BoolValueH\x07\x88\x01\x01\x12\x36\n\rgif_auto_play\x18\x0b \x01(\x0b\x32\x1a.google.protobuf.BoolValueH\x08\x88\x01\x01\x12\x36\n\rrender_embeds\x18\x0c \x01(\x0b\x32\x1a.google.protobuf.BoolValueH\t\x88\x01\x01\x12\x39\n\x10render_reactions\x18\r \x01(\x0b\x32\x1a.google.protobuf.BoolValueH\n\x88\x01\x01\x12\x36\n\ranimate_emoji\x18\x0e \x01(\x0b\x32\x1a.google.protobuf.BoolValueH\x0b\x88\x01\x01\x12;\n\x10\x61nimate_stickers\x18\x0f \x01(\x0b\x32\x1c.google.protobuf.UInt32ValueH\x0c\x88\x01\x01\x12;\n\x12\x65nable_tts_command\x18\x10 \x01(\x0b\x32\x1a.google.protobuf.BoolValueH\r\x88\x01\x01\x12@\n\x17message_display_compact\x18\x11 \x01(\x0b\x32\x1a.google.protobuf.BoolValueH\x0e\x88\x01\x01\x12\x42\n\x17\x65xplicit_content_filter\x18\x13 \x01(\x0b\x32\x1c.google.protobuf.UInt32ValueH\x0f\x88\x01\x01\x12\x39\n\x10view_nsfw_guilds\x18\x14 \x01(\x0b\x32\x1a.google.protobuf.BoolValueH\x10\x88\x01\x01\x12:\n\x11\x63onvert_emoticons\x18\x15 \x01(\x0b\x32\x1a.google.protobuf.BoolValueH\x11\x88\x01\x01\x12G\n\x1e\x65xpression_suggestions_enabled\x18\x16 \x01(\x0b\x32\x1a.google.protobuf.BoolValueH\x12\x88\x01\x01\x12;\n\x12view_nsfw_commands\x18\x17 \x01(\x0b\x32\x1a.google.protobuf.BoolValueH\x13\x88\x01\x01\x12>\n\x15use_legacy_chat_input\x18\x18 \x01(\x0b\x32\x1a.google.protobuf.BoolValueH\x14\x88\x01\x01\x12,\n$soundboard_picker_collapsed_sections\x18\x19 \x03(\t\x12\x39\n\x0e\x64m_spam_filter\x18\x1a \x01(\x0b\x32\x1c.google.protobuf.UInt32ValueH\x15\x88\x01\x01\x12v\n\x11\x64m_spam_filter_v2\x18\x1b \x01(\x0e\x32[.discord_protos.discord_users.v1.PreloadedUserSettings.PreloadedUserSettings.DmSpamFilterV2\x12I\n include_stickers_in_autocomplete\x18\x1c \x01(\x0b\x32\x1a.google.protobuf.BoolValueH\x16\x88\x01\x01\x42\x16\n\x14_diversity_surrogateB\x16\n\x14_use_rich_chat_inputB\x15\n\x13_use_thread_sidebarB\x12\n\x10_render_spoilersB\x1a\n\x18_view_image_descriptionsB\x1b\n\x19_show_command_suggestionsB\x1a\n\x18_inline_attachment_mediaB\x15\n\x13_inline_embed_mediaB\x10\n\x0e_gif_auto_playB\x10\n\x0e_render_embedsB\x13\n\x11_render_reactionsB\x10\n\x0e_animate_emojiB\x13\n\x11_animate_stickersB\x15\n\x13_enable_tts_commandB\x1a\n\x18_message_display_compactB\x1a\n\x18_explicit_content_filterB\x13\n\x11_view_nsfw_guildsB\x14\n\x12_convert_emoticonsB!\n\x1f_expression_suggestions_enabledB\x15\n\x13_view_nsfw_commandsB\x18\n\x16_use_legacy_chat_inputB\x11\n\x0f_dm_spam_filterB#\n!_include_stickers_in_autocomplete\x1a\xfd\x02\n\x14NotificationSettings\x12\x42\n\x19show_in_app_notifications\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.BoolValueH\x00\x88\x01\x01\x12\x42\n\x19notify_friends_on_go_live\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.BoolValueH\x01\x88\x01\x01\x12+\n#notification_center_acked_before_id\x18\x03 \x01(\x06\x12L\n#enable_burst_reaction_notifications\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.BoolValueH\x02\x88\x01\x01\x42\x1c\n\x1a_show_in_app_notificationsB\x1c\n\x1a_notify_friends_on_go_liveB&\n$_enable_burst_reaction_notifications\x1a\x88\r\n\x0fPrivacySettings\x12M\n$allow_activity_party_privacy_friends\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.BoolValueH\x00\x88\x01\x01\x12S\n*allow_activity_party_privacy_voice_channel\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.BoolValueH\x01\x88\x01\x01\x12\x1c\n\x14restricted_guild_ids\x18\x03 \x03(\x06\x12!\n\x19\x64\x65\x66\x61ult_guilds_restricted\x18\x04 \x01(\x08\x12%\n\x1d\x61llow_accessibility_detection\x18\x07 \x01(\x08\x12\x41\n\x18\x64\x65tect_platform_accounts\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.BoolValueH\x02\x88\x01\x01\x12\x35\n\x0cpasswordless\x18\t \x01(\x0b\x32\x1a.google.protobuf.BoolValueH\x03\x88\x01\x01\x12=\n\x14\x63ontact_sync_enabled\x18\n \x01(\x0b\x32\x1a.google.protobuf.BoolValueH\x04\x88\x01\x01\x12>\n\x13\x66riend_source_flags\x18\x0b \x01(\x0b\x32\x1c.google.protobuf.UInt32ValueH\x05\x88\x01\x01\x12\x41\n\x16\x66riend_discovery_flags\x18\x0c \x01(\x0b\x32\x1c.google.protobuf.UInt32ValueH\x06\x88\x01\x01\x12%\n\x1d\x61\x63tivity_restricted_guild_ids\x18\r \x03(\x06\x12\x9e\x01\n\"default_guilds_activity_restricted\x18\x0e \x01(\x0e\x32r.discord_protos.discord_users.v1.PreloadedUserSettings.PreloadedUserSettings.GuildActivityStatusRestrictionDefault\x12-\n%activity_joining_restricted_guild_ids\x18\x0f \x03(\x06\x12,\n$message_request_restricted_guild_ids\x18\x10 \x03(\x06\x12K\n\"default_message_request_restricted\x18\x11 \x01(\x0b\x32\x1a.google.protobuf.BoolValueH\x07\x88\x01\x01\x12\x38\n\x0f\x64rops_opted_out\x18\x12 \x01(\x0b\x32\x1a.google.protobuf.BoolValueH\x08\x88\x01\x01\x12\x43\n\x1anon_spam_retraining_opt_in\x18\x13 \x01(\x0b\x32\x1a.google.protobuf.BoolValueH\t\x88\x01\x01\x12>\n\x15\x66\x61mily_center_enabled\x18\x14 \x01(\x0b\x32\x1a.google.protobuf.BoolValueH\n\x88\x01\x01\x12\x41\n\x18\x66\x61mily_center_enabled_v2\x18\x15 \x01(\x0b\x32\x1a.google.protobuf.BoolValueH\x0b\x88\x01\x01\x12=\n\x14hide_legacy_username\x18\x16 \x01(\x0b\x32\x1a.google.protobuf.BoolValueH\x0c\x88\x01\x01\x42\'\n%_allow_activity_party_privacy_friendsB-\n+_allow_activity_party_privacy_voice_channelB\x1b\n\x19_detect_platform_accountsB\x0f\n\r_passwordlessB\x17\n\x15_contact_sync_enabledB\x16\n\x14_friend_source_flagsB\x19\n\x17_friend_discovery_flagsB%\n#_default_message_request_restrictedB\x12\n\x10_drops_opted_outB\x1d\n\x1b_non_spam_retraining_opt_inB\x18\n\x16_family_center_enabledB\x1b\n\x19_family_center_enabled_v2B\x17\n\x15_hide_legacy_username\x1au\n\rDebugSettings\x12\x44\n\x1brtc_panel_show_voice_states\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.BoolValueH\x00\x88\x01\x01\x42\x1e\n\x1c_rtc_panel_show_voice_states\x1a\xad\x02\n\x13GameLibrarySettings\x12\x41\n\x18install_shortcut_desktop\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.BoolValueH\x00\x88\x01\x01\x12\x44\n\x1binstall_shortcut_start_menu\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.BoolValueH\x01\x88\x01\x01\x12:\n\x11\x64isable_games_tab\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.BoolValueH\x02\x88\x01\x01\x42\x1b\n\x19_install_shortcut_desktopB\x1e\n\x1c_install_shortcut_start_menuB\x14\n\x12_disable_games_tab\x1aY\n\x0c\x43ustomStatus\x12\x0c\n\x04text\x18\x01 \x01(\t\x12\x10\n\x08\x65moji_id\x18\x02 \x01(\x06\x12\x12\n\nemoji_name\x18\x03 \x01(\t\x12\x15\n\rexpires_at_ms\x18\x04 \x01(\x06\x1a\xa9\x02\n\x0eStatusSettings\x12\x31\n\x06status\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValueH\x00\x88\x01\x01\x12u\n\rcustom_status\x18\x02 \x01(\x0b\x32Y.discord_protos.discord_users.v1.PreloadedUserSettings.PreloadedUserSettings.CustomStatusH\x01\x88\x01\x01\x12:\n\x11show_current_game\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.BoolValueH\x02\x88\x01\x01\x42\t\n\x07_statusB\x10\n\x0e_custom_statusB\x14\n\x12_show_current_game\x1a\xa3\x01\n\x14LocalizationSettings\x12\x31\n\x06locale\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValueH\x00\x88\x01\x01\x12\x39\n\x0ftimezone_offset\x18\x02 \x01(\x0b\x32\x1b.google.protobuf.Int32ValueH\x01\x88\x01\x01\x42\t\n\x07_localeB\x12\n\x10_timezone_offset\x1a\xb0\x02\n\x13\x43lientThemeSettings\x12\x38\n\rprimary_color\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.UInt64ValueH\x00\x88\x01\x01\x12H\n\x1d\x62\x61\x63kground_gradient_preset_id\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.UInt32ValueH\x01\x88\x01\x01\x12\x43\n\x19\x62\x61\x63kground_gradient_angle\x18\x03 \x01(\x0b\x32\x1b.google.protobuf.FloatValueH\x02\x88\x01\x01\x42\x10\n\x0e_primary_colorB \n\x1e_background_gradient_preset_idB\x1c\n\x1a_background_gradient_angle\x1a\xfc\x03\n\x12\x41ppearanceSettings\x12\x61\n\x05theme\x18\x01 \x01(\x0e\x32R.discord_protos.discord_users.v1.PreloadedUserSettings.PreloadedUserSettings.Theme\x12\x16\n\x0e\x64\x65veloper_mode\x18\x02 \x01(\x08\x12\x84\x01\n\x15\x63lient_theme_settings\x18\x03 \x01(\x0b\x32`.discord_protos.discord_users.v1.PreloadedUserSettings.PreloadedUserSettings.ClientThemeSettingsH\x00\x88\x01\x01\x12 \n\x18mobile_redesign_disabled\x18\x04 \x01(\x08\x12>\n\x13\x63hannel_list_layout\x18\x06 \x01(\x0b\x32\x1c.google.protobuf.StringValueH\x01\x88\x01\x01\x12;\n\x10message_previews\x18\x07 \x01(\x0b\x32\x1c.google.protobuf.StringValueH\x02\x88\x01\x01\x42\x18\n\x16_client_theme_settingsB\x16\n\x14_channel_list_layoutB\x13\n\x11_message_previews\x1a\xcb\x01\n\x0bGuildFolder\x12\x11\n\tguild_ids\x18\x01 \x03(\x06\x12,\n\x02id\x18\x02 \x01(\x0b\x32\x1b.google.protobuf.Int64ValueH\x00\x88\x01\x01\x12/\n\x04name\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.StringValueH\x01\x88\x01\x01\x12\x30\n\x05\x63olor\x18\x04 \x01(\x0b\x32\x1c.google.protobuf.UInt64ValueH\x02\x88\x01\x01\x42\x05\n\x03_idB\x07\n\x05_nameB\x08\n\x06_color\x1a\x92\x01\n\x0cGuildFolders\x12i\n\x07\x66olders\x18\x01 \x03(\x0b\x32X.discord_protos.discord_users.v1.PreloadedUserSettings.PreloadedUserSettings.GuildFolder\x12\x17\n\x0fguild_positions\x18\x02 \x03(\x06\x1a\xb8\x01\n\x0f\x46\x61voriteChannel\x12\x10\n\x08nickname\x18\x01 \x01(\t\x12n\n\x04type\x18\x02 \x01(\x0e\x32`.discord_protos.discord_users.v1.PreloadedUserSettings.PreloadedUserSettings.FavoriteChannelType\x12\x10\n\x08position\x18\x03 \x01(\r\x12\x11\n\tparent_id\x18\x04 \x01(\x06\x1a\xbc\x02\n\tFavorites\x12\x87\x01\n\x11\x66\x61vorite_channels\x18\x01 \x03(\x0b\x32l.discord_protos.discord_users.v1.PreloadedUserSettings.PreloadedUserSettings.Favorites.FavoriteChannelsEntry\x12\r\n\x05muted\x18\x02 \x01(\x08\x1a\x95\x01\n\x15\x46\x61voriteChannelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\x06\x12k\n\x05value\x18\x02 \x01(\x0b\x32\\.discord_protos.discord_users.v1.PreloadedUserSettings.PreloadedUserSettings.FavoriteChannel:\x02\x38\x01\x1a\x63\n\x13\x41udioContextSetting\x12\r\n\x05muted\x18\x01 \x01(\x08\x12\x0e\n\x06volume\x18\x02 \x01(\x02\x12\x13\n\x0bmodified_at\x18\x03 \x01(\x06\x12\x18\n\x10soundboard_muted\x18\x04 \x01(\x08\x1a\x9d\x04\n\rAudioSettings\x12r\n\x04user\x18\x01 \x03(\x0b\x32\x64.discord_protos.discord_users.v1.PreloadedUserSettings.PreloadedUserSettings.AudioSettings.UserEntry\x12v\n\x06stream\x18\x02 \x03(\x0b\x32\x66.discord_protos.discord_users.v1.PreloadedUserSettings.PreloadedUserSettings.AudioSettings.StreamEntry\x1a\x8d\x01\n\tUserEntry\x12\x0b\n\x03key\x18\x01 \x01(\x06\x12o\n\x05value\x18\x02 \x01(\x0b\x32`.discord_protos.discord_users.v1.PreloadedUserSettings.PreloadedUserSettings.AudioContextSetting:\x02\x38\x01\x1a\x8f\x01\n\x0bStreamEntry\x12\x0b\n\x03key\x18\x01 \x01(\x06\x12o\n\x05value\x18\x02 \x01(\x0b\x32`.discord_protos.discord_users.v1.PreloadedUserSettings.PreloadedUserSettings.AudioContextSetting:\x02\x38\x01\x1ao\n\x13\x43ommunitiesSettings\x12>\n\x15\x64isable_home_auto_nav\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.BoolValueH\x00\x88\x01\x01\x42\x18\n\x16_disable_home_auto_nav\x1a\xde\x01\n\x11\x42roadcastSettings\x12\x36\n\rallow_friends\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.BoolValueH\x00\x88\x01\x01\x12\x19\n\x11\x61llowed_guild_ids\x18\x02 \x03(\x06\x12\x18\n\x10\x61llowed_user_ids\x18\x03 \x03(\x06\x12\x37\n\x0e\x61uto_broadcast\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.BoolValueH\x01\x88\x01\x01\x42\x10\n\x0e_allow_friendsB\x11\n\x0f_auto_broadcast\"N\n\x08InboxTab\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0c\n\x08MENTIONS\x10\x01\x12\x0b\n\x07UNREADS\x10\x02\x12\t\n\x05TODOS\x10\x03\x12\x0b\n\x07\x46OR_YOU\x10\x04\"_\n\x0e\x44mSpamFilterV2\x12\x11\n\rDEFAULT_UNSET\x10\x00\x12\x0c\n\x08\x44ISABLED\x10\x01\x12\x0f\n\x0bNON_FRIENDS\x10\x02\x12\x1b\n\x17\x46RIENDS_AND_NON_FRIENDS\x10\x03\"I\n%GuildActivityStatusRestrictionDefault\x12\x07\n\x03OFF\x10\x00\x12\x17\n\x13ON_FOR_LARGE_GUILDS\x10\x01\"\'\n\x05Theme\x12\t\n\x05UNSET\x10\x00\x12\x08\n\x04\x44\x41RK\x10\x01\x12\t\n\x05LIGHT\x10\x02\"\\\n\x13\x46\x61voriteChannelType\x12\x1f\n\x1bUNSET_FAVORITE_CHANNEL_TYPE\x10\x00\x12\x16\n\x12REFERENCE_ORIGINAL\x10\x01\x12\x0c\n\x08\x43\x41TEGORY\x10\x02\x42\x0b\n\t_versionsB\x08\n\x06_inboxB\t\n\x07_guildsB\x0f\n\r_user_contentB\x12\n\x10_voice_and_videoB\x12\n\x10_text_and_imagesB\x10\n\x0e_notificationsB\n\n\x08_privacyB\x08\n\x06_debugB\x0f\n\r_game_libraryB\t\n\x07_statusB\x0f\n\r_localizationB\r\n\x0b_appearanceB\x10\n\x0e_guild_foldersB\x0c\n\n_favoritesB\x19\n\x17_audio_context_settingsB\x0e\n\x0c_communitiesB\x0c\n\n_broadcastb\x06proto3')
|
|
19
|
+
|
|
20
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals())
|
|
21
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'PreloadedUserSettings_pb2', globals())
|
|
22
|
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
|
23
|
+
|
|
24
|
+
DESCRIPTOR._options = None
|
|
25
|
+
_PRELOADEDUSERSETTINGS_GUILDSETTINGS_CHANNELSENTRY._options = None
|
|
26
|
+
_PRELOADEDUSERSETTINGS_GUILDSETTINGS_CHANNELSENTRY._serialized_options = b'8\001'
|
|
27
|
+
_PRELOADEDUSERSETTINGS_ALLGUILDSETTINGS_GUILDSENTRY._options = None
|
|
28
|
+
_PRELOADEDUSERSETTINGS_ALLGUILDSETTINGS_GUILDSENTRY._serialized_options = b'8\001'
|
|
29
|
+
_PRELOADEDUSERSETTINGS_FAVORITES_FAVORITECHANNELSENTRY._options = None
|
|
30
|
+
_PRELOADEDUSERSETTINGS_FAVORITES_FAVORITECHANNELSENTRY._serialized_options = b'8\001'
|
|
31
|
+
_PRELOADEDUSERSETTINGS_AUDIOSETTINGS_USERENTRY._options = None
|
|
32
|
+
_PRELOADEDUSERSETTINGS_AUDIOSETTINGS_USERENTRY._serialized_options = b'8\001'
|
|
33
|
+
_PRELOADEDUSERSETTINGS_AUDIOSETTINGS_STREAMENTRY._options = None
|
|
34
|
+
_PRELOADEDUSERSETTINGS_AUDIOSETTINGS_STREAMENTRY._serialized_options = b'8\001'
|
|
35
|
+
_PRELOADEDUSERSETTINGS._serialized_start=152
|
|
36
|
+
_PRELOADEDUSERSETTINGS._serialized_end=14479
|
|
37
|
+
_PRELOADEDUSERSETTINGS_VERSIONS._serialized_start=2348
|
|
38
|
+
_PRELOADEDUSERSETTINGS_VERSIONS._serialized_end=2428
|
|
39
|
+
_PRELOADEDUSERSETTINGS_INBOXSETTINGS._serialized_start=2431
|
|
40
|
+
_PRELOADEDUSERSETTINGS_INBOXSETTINGS._serialized_end=2579
|
|
41
|
+
_PRELOADEDUSERSETTINGS_CHANNELICONEMOJI._serialized_start=2582
|
|
42
|
+
_PRELOADEDUSERSETTINGS_CHANNELICONEMOJI._serialized_end=2772
|
|
43
|
+
_PRELOADEDUSERSETTINGS_CHANNELSETTINGS._serialized_start=2775
|
|
44
|
+
_PRELOADEDUSERSETTINGS_CHANNELSETTINGS._serialized_end=2955
|
|
45
|
+
_PRELOADEDUSERSETTINGS_CUSTOMCALLSOUND._serialized_start=2957
|
|
46
|
+
_PRELOADEDUSERSETTINGS_CUSTOMCALLSOUND._serialized_end=3010
|
|
47
|
+
_PRELOADEDUSERSETTINGS_CHANNELLISTSETTINGS._serialized_start=3013
|
|
48
|
+
_PRELOADEDUSERSETTINGS_CHANNELLISTSETTINGS._serialized_end=3178
|
|
49
|
+
_PRELOADEDUSERSETTINGS_GUILDSETTINGS._serialized_start=3181
|
|
50
|
+
_PRELOADEDUSERSETTINGS_GUILDSETTINGS._serialized_end=4046
|
|
51
|
+
_PRELOADEDUSERSETTINGS_GUILDSETTINGS_CHANNELSENTRY._serialized_start=3817
|
|
52
|
+
_PRELOADEDUSERSETTINGS_GUILDSETTINGS_CHANNELSENTRY._serialized_end=3958
|
|
53
|
+
_PRELOADEDUSERSETTINGS_ALLGUILDSETTINGS._serialized_start=4049
|
|
54
|
+
_PRELOADEDUSERSETTINGS_ALLGUILDSETTINGS._serialized_end=4330
|
|
55
|
+
_PRELOADEDUSERSETTINGS_ALLGUILDSETTINGS_GUILDSENTRY._serialized_start=4193
|
|
56
|
+
_PRELOADEDUSERSETTINGS_ALLGUILDSETTINGS_GUILDSENTRY._serialized_end=4330
|
|
57
|
+
_PRELOADEDUSERSETTINGS_USERCONTENTSETTINGS._serialized_start=4333
|
|
58
|
+
_PRELOADEDUSERSETTINGS_USERCONTENTSETTINGS._serialized_end=4884
|
|
59
|
+
_PRELOADEDUSERSETTINGS_VIDEOFILTERBACKGROUNDBLUR._serialized_start=4886
|
|
60
|
+
_PRELOADEDUSERSETTINGS_VIDEOFILTERBACKGROUNDBLUR._serialized_end=4931
|
|
61
|
+
_PRELOADEDUSERSETTINGS_VIDEOFILTERASSET._serialized_start=4933
|
|
62
|
+
_PRELOADEDUSERSETTINGS_VIDEOFILTERASSET._serialized_end=4983
|
|
63
|
+
_PRELOADEDUSERSETTINGS_SOUNDBOARDSETTINGS._serialized_start=4985
|
|
64
|
+
_PRELOADEDUSERSETTINGS_SOUNDBOARDSETTINGS._serialized_end=5021
|
|
65
|
+
_PRELOADEDUSERSETTINGS_VOICEANDVIDEOSETTINGS._serialized_start=5024
|
|
66
|
+
_PRELOADEDUSERSETTINGS_VOICEANDVIDEOSETTINGS._serialized_end=5837
|
|
67
|
+
_PRELOADEDUSERSETTINGS_TEXTANDIMAGESSETTINGS._serialized_start=5840
|
|
68
|
+
_PRELOADEDUSERSETTINGS_TEXTANDIMAGESSETTINGS._serialized_end=8111
|
|
69
|
+
_PRELOADEDUSERSETTINGS_NOTIFICATIONSETTINGS._serialized_start=8114
|
|
70
|
+
_PRELOADEDUSERSETTINGS_NOTIFICATIONSETTINGS._serialized_end=8495
|
|
71
|
+
_PRELOADEDUSERSETTINGS_PRIVACYSETTINGS._serialized_start=8498
|
|
72
|
+
_PRELOADEDUSERSETTINGS_PRIVACYSETTINGS._serialized_end=10170
|
|
73
|
+
_PRELOADEDUSERSETTINGS_DEBUGSETTINGS._serialized_start=10172
|
|
74
|
+
_PRELOADEDUSERSETTINGS_DEBUGSETTINGS._serialized_end=10289
|
|
75
|
+
_PRELOADEDUSERSETTINGS_GAMELIBRARYSETTINGS._serialized_start=10292
|
|
76
|
+
_PRELOADEDUSERSETTINGS_GAMELIBRARYSETTINGS._serialized_end=10593
|
|
77
|
+
_PRELOADEDUSERSETTINGS_CUSTOMSTATUS._serialized_start=10595
|
|
78
|
+
_PRELOADEDUSERSETTINGS_CUSTOMSTATUS._serialized_end=10684
|
|
79
|
+
_PRELOADEDUSERSETTINGS_STATUSSETTINGS._serialized_start=10687
|
|
80
|
+
_PRELOADEDUSERSETTINGS_STATUSSETTINGS._serialized_end=10984
|
|
81
|
+
_PRELOADEDUSERSETTINGS_LOCALIZATIONSETTINGS._serialized_start=10987
|
|
82
|
+
_PRELOADEDUSERSETTINGS_LOCALIZATIONSETTINGS._serialized_end=11150
|
|
83
|
+
_PRELOADEDUSERSETTINGS_CLIENTTHEMESETTINGS._serialized_start=11153
|
|
84
|
+
_PRELOADEDUSERSETTINGS_CLIENTTHEMESETTINGS._serialized_end=11457
|
|
85
|
+
_PRELOADEDUSERSETTINGS_APPEARANCESETTINGS._serialized_start=11460
|
|
86
|
+
_PRELOADEDUSERSETTINGS_APPEARANCESETTINGS._serialized_end=11968
|
|
87
|
+
_PRELOADEDUSERSETTINGS_GUILDFOLDER._serialized_start=11971
|
|
88
|
+
_PRELOADEDUSERSETTINGS_GUILDFOLDER._serialized_end=12174
|
|
89
|
+
_PRELOADEDUSERSETTINGS_GUILDFOLDERS._serialized_start=12177
|
|
90
|
+
_PRELOADEDUSERSETTINGS_GUILDFOLDERS._serialized_end=12323
|
|
91
|
+
_PRELOADEDUSERSETTINGS_FAVORITECHANNEL._serialized_start=12326
|
|
92
|
+
_PRELOADEDUSERSETTINGS_FAVORITECHANNEL._serialized_end=12510
|
|
93
|
+
_PRELOADEDUSERSETTINGS_FAVORITES._serialized_start=12513
|
|
94
|
+
_PRELOADEDUSERSETTINGS_FAVORITES._serialized_end=12829
|
|
95
|
+
_PRELOADEDUSERSETTINGS_FAVORITES_FAVORITECHANNELSENTRY._serialized_start=12680
|
|
96
|
+
_PRELOADEDUSERSETTINGS_FAVORITES_FAVORITECHANNELSENTRY._serialized_end=12829
|
|
97
|
+
_PRELOADEDUSERSETTINGS_AUDIOCONTEXTSETTING._serialized_start=12831
|
|
98
|
+
_PRELOADEDUSERSETTINGS_AUDIOCONTEXTSETTING._serialized_end=12930
|
|
99
|
+
_PRELOADEDUSERSETTINGS_AUDIOSETTINGS._serialized_start=12933
|
|
100
|
+
_PRELOADEDUSERSETTINGS_AUDIOSETTINGS._serialized_end=13474
|
|
101
|
+
_PRELOADEDUSERSETTINGS_AUDIOSETTINGS_USERENTRY._serialized_start=13187
|
|
102
|
+
_PRELOADEDUSERSETTINGS_AUDIOSETTINGS_USERENTRY._serialized_end=13328
|
|
103
|
+
_PRELOADEDUSERSETTINGS_AUDIOSETTINGS_STREAMENTRY._serialized_start=13331
|
|
104
|
+
_PRELOADEDUSERSETTINGS_AUDIOSETTINGS_STREAMENTRY._serialized_end=13474
|
|
105
|
+
_PRELOADEDUSERSETTINGS_COMMUNITIESSETTINGS._serialized_start=13476
|
|
106
|
+
_PRELOADEDUSERSETTINGS_COMMUNITIESSETTINGS._serialized_end=13587
|
|
107
|
+
_PRELOADEDUSERSETTINGS_BROADCASTSETTINGS._serialized_start=13590
|
|
108
|
+
_PRELOADEDUSERSETTINGS_BROADCASTSETTINGS._serialized_end=13812
|
|
109
|
+
_PRELOADEDUSERSETTINGS_INBOXTAB._serialized_start=13814
|
|
110
|
+
_PRELOADEDUSERSETTINGS_INBOXTAB._serialized_end=13892
|
|
111
|
+
_PRELOADEDUSERSETTINGS_DMSPAMFILTERV2._serialized_start=13894
|
|
112
|
+
_PRELOADEDUSERSETTINGS_DMSPAMFILTERV2._serialized_end=13989
|
|
113
|
+
_PRELOADEDUSERSETTINGS_GUILDACTIVITYSTATUSRESTRICTIONDEFAULT._serialized_start=13991
|
|
114
|
+
_PRELOADEDUSERSETTINGS_GUILDACTIVITYSTATUSRESTRICTIONDEFAULT._serialized_end=14064
|
|
115
|
+
_PRELOADEDUSERSETTINGS_THEME._serialized_start=14066
|
|
116
|
+
_PRELOADEDUSERSETTINGS_THEME._serialized_end=14105
|
|
117
|
+
_PRELOADEDUSERSETTINGS_FAVORITECHANNELTYPE._serialized_start=14107
|
|
118
|
+
_PRELOADEDUSERSETTINGS_FAVORITECHANNELTYPE._serialized_end=14199
|
|
119
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
from enum import Enum as _Enum
|
|
2
|
+
from typing import TYPE_CHECKING
|
|
3
|
+
|
|
4
|
+
if TYPE_CHECKING:
|
|
5
|
+
from google.protobuf.message import Message as _Message
|
|
6
|
+
|
|
7
|
+
FrecencyUserSettings = PreloadedUserSettings = _Message
|
|
8
|
+
else:
|
|
9
|
+
from .FrecencyUserSettings_pb2 import FrecencyUserSettings
|
|
10
|
+
from .PreloadedUserSettings_pb2 import PreloadedUserSettings
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class UserSettingsType(_Enum):
|
|
14
|
+
preloaded_user_settings = 1
|
|
15
|
+
frecency_user_settings = 2
|
|
16
|
+
test_settings = 3
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
UserSettingsImpl = {
|
|
20
|
+
UserSettingsType.preloaded_user_settings: PreloadedUserSettings,
|
|
21
|
+
UserSettingsType.frecency_user_settings: FrecencyUserSettings,
|
|
22
|
+
UserSettingsType.test_settings: None,
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
__version__ = '0.0.2'
|
package/dist/load.js
CHANGED
|
@@ -12,7 +12,7 @@ async function main() {
|
|
|
12
12
|
await page.goto("https://discord.com/app", { waitUntil: "networkidle0" });
|
|
13
13
|
const protos = await page.evaluate(`${script}; protos`);
|
|
14
14
|
for (const [name, proto] of Object.entries(protos)) {
|
|
15
|
-
(0, fs_1.writeFileSync)((0, path_1.join)(__dirname, "..", "
|
|
15
|
+
(0, fs_1.writeFileSync)((0, path_1.join)(__dirname, "..", "discord_protos", name + ".proto"), proto.data);
|
|
16
16
|
}
|
|
17
17
|
await browser.close();
|
|
18
18
|
}
|
package/dist/parse.js
CHANGED
|
@@ -2,7 +2,12 @@ if (!getModules) {
|
|
|
2
2
|
var filterMap = (arr, callback) => arr.filter(callback).map(callback);
|
|
3
3
|
function getModules(str) {
|
|
4
4
|
webpackChunkdiscord_app.push([["discord-protos"], {}, r => cache = Object.values(r.c)]);
|
|
5
|
-
return filterMap(cache, x =>
|
|
5
|
+
return filterMap(cache, x => {
|
|
6
|
+
try {
|
|
7
|
+
return Object.values(x.exports || {}).find(v => v && v[str]);
|
|
8
|
+
}
|
|
9
|
+
catch (e) { }
|
|
10
|
+
});
|
|
6
11
|
}
|
|
7
12
|
}
|
|
8
13
|
// Map the type ints to their names
|
|
@@ -36,6 +36,10 @@ export interface FrecencyUserSettings {
|
|
|
36
36
|
* @generated from protobuf field: optional discord_protos.discord_users.v1.FrecencyUserSettings.FrecencyUserSettings.ApplicationCommandFrecency application_command_frecency = 7;
|
|
37
37
|
*/
|
|
38
38
|
applicationCommandFrecency?: FrecencyUserSettings_ApplicationCommandFrecency;
|
|
39
|
+
/**
|
|
40
|
+
* @generated from protobuf field: optional discord_protos.discord_users.v1.FrecencyUserSettings.FrecencyUserSettings.FavoriteSoundboardSounds favorite_soundboard_sounds = 8;
|
|
41
|
+
*/
|
|
42
|
+
favoriteSoundboardSounds?: FrecencyUserSettings_FavoriteSoundboardSounds;
|
|
39
43
|
}
|
|
40
44
|
/**
|
|
41
45
|
* @generated from protobuf message discord_protos.discord_users.v1.FrecencyUserSettings.FrecencyUserSettings.Versions
|
|
@@ -166,6 +170,15 @@ export interface FrecencyUserSettings_ApplicationCommandFrecency {
|
|
|
166
170
|
[key: string]: FrecencyUserSettings_FrecencyItem;
|
|
167
171
|
};
|
|
168
172
|
}
|
|
173
|
+
/**
|
|
174
|
+
* @generated from protobuf message discord_protos.discord_users.v1.FrecencyUserSettings.FrecencyUserSettings.FavoriteSoundboardSounds
|
|
175
|
+
*/
|
|
176
|
+
export interface FrecencyUserSettings_FavoriteSoundboardSounds {
|
|
177
|
+
/**
|
|
178
|
+
* @generated from protobuf field: repeated fixed64 sound_ids = 1;
|
|
179
|
+
*/
|
|
180
|
+
soundIds: bigint[];
|
|
181
|
+
}
|
|
169
182
|
/**
|
|
170
183
|
* @generated from protobuf enum discord_protos.discord_users.v1.FrecencyUserSettings.FrecencyUserSettings.GIFType
|
|
171
184
|
*/
|
|
@@ -287,4 +300,14 @@ declare class FrecencyUserSettings_ApplicationCommandFrecency$Type extends Messa
|
|
|
287
300
|
* @generated MessageType for protobuf message discord_protos.discord_users.v1.FrecencyUserSettings.FrecencyUserSettings.ApplicationCommandFrecency
|
|
288
301
|
*/
|
|
289
302
|
export declare const FrecencyUserSettings_ApplicationCommandFrecency: FrecencyUserSettings_ApplicationCommandFrecency$Type;
|
|
303
|
+
declare class FrecencyUserSettings_FavoriteSoundboardSounds$Type extends MessageType<FrecencyUserSettings_FavoriteSoundboardSounds> {
|
|
304
|
+
constructor();
|
|
305
|
+
create(value?: PartialMessage<FrecencyUserSettings_FavoriteSoundboardSounds>): FrecencyUserSettings_FavoriteSoundboardSounds;
|
|
306
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: FrecencyUserSettings_FavoriteSoundboardSounds): FrecencyUserSettings_FavoriteSoundboardSounds;
|
|
307
|
+
internalBinaryWrite(message: FrecencyUserSettings_FavoriteSoundboardSounds, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
308
|
+
}
|
|
309
|
+
/**
|
|
310
|
+
* @generated MessageType for protobuf message discord_protos.discord_users.v1.FrecencyUserSettings.FrecencyUserSettings.FavoriteSoundboardSounds
|
|
311
|
+
*/
|
|
312
|
+
export declare const FrecencyUserSettings_FavoriteSoundboardSounds: FrecencyUserSettings_FavoriteSoundboardSounds$Type;
|
|
290
313
|
export {};
|