Last active
February 24, 2023 10:04
-
-
Save RuslanUC/066c722e77fdcf6e17d3eb0e60f1fc6a to your computer and use it in GitHub Desktop.
Revisions
-
RuslanUC revised this gist
Feb 24, 2023 . 1 changed file with 33 additions and 32 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,64 +1,65 @@ syntax = "proto3"; package discord_protos.discord_users.v1.FrecencyUserSettings; message FrecencyUserSettings { message Versions { uint32 client_version = 1; uint32 server_version = 2; uint32 data_version = 3; } enum GIFType { NONE = 0; IMAGE = 1; VIDEO = 2; } message FavoriteGIF { GIFType format = 1; string src = 2; uint32 width = 3; uint32 height = 4; uint32 order = 5; } message FavoriteGIFs { map<string, FavoriteGIF> gifs = 1; bool hide_tooltip = 2; } message FavoriteStickers { repeated fixed64 sticker_ids = 1; } message FrecencyItem { uint32 total_uses = 1; repeated uint64 recent_uses = 2; int32 frecency = 3; int32 score = 4; } message StickerFrecency { map<fixed64, FrecencyItem> stickers = 1; } message FavoriteEmojis { repeated string emojis = 1; } message EmojiFrecency { map<string, FrecencyItem> emojis = 1; } message ApplicationCommandFrecency { map<string, FrecencyItem> application_commands = 1; } optional Versions versions = 1; optional FavoriteGIFs favorite_gifs = 2; optional FavoriteStickers favorite_stickers = 3; optional StickerFrecency sticker_frecency = 4; optional FavoriteEmojis favorite_emojis = 5; optional EmojiFrecency emoji_frecency = 6; optional ApplicationCommandFrecency application_command_frecency = 7; } -
RuslanUC created this gist
Aug 28, 2022 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,64 @@ syntax = "proto3"; package discord_protos.discord_users.v1; message Version { uint32 client_version = 1; uint32 server_version = 2; uint32 data_version = 3; } enum GIFType { NONE = 0; IMAGE = 1; VIDEO = 2; } message FavoriteGIF { GIFType format = 1; string src = 2; uint32 width = 3; uint32 height = 4; uint32 order = 5; } message FavoriteGIFs { map<string, FavoriteGIF> gifs = 1; bool hide_tooltip = 2; } message FavoriteStickers { repeated fixed64 sticker_ids = 1 [packed = true]; } message FrecencyItem { uint32 total_uses = 1; repeated uint64 recent_uses = 2 [packed = true]; int32 frecency = 3; int32 score = 4; } message StickerFrecency { map<fixed64, FrecencyItem> stickers = 1; } message FavoriteEmojis { repeated string emojis = 1 [packed = false]; } message EmojiFrecency { map<string, FrecencyItem> emojis = 1; } message ApplicationCommandFrecency { map<string, FrecencyItem> application_commands = 1; } message FrecencyUserSettings { Version versions = 1; FavoriteGIFs favorite_gifs = 2; FavoriteStickers favorite_stickers = 3; StickerFrecency sticker_frecency = 4; FavoriteEmojis favorite_emojis = 5; EmojiFrecency emoji_frecency = 6; ApplicationCommandFrecency application_command_frecency = 7; }