diff --git a/docs/contributing/Reverse Engineering/client/enums.md b/docs/contributing/Reverse Engineering/client/enums.md new file mode 100644 index 00000000..19d292c8 --- /dev/null +++ b/docs/contributing/Reverse Engineering/client/enums.md @@ -0,0 +1,19 @@ +# Enums and bitfields and such + +Various interesting enums/bitfields/etc found by inspecting the client source + +## `usage_flags` + +Bitfield which tracks which premium features you have used in order +to convince you out of unsubscribing from premium features. + +| name | value | +| --------------------- | ----- | +| PREMIUM_DISCRIMINATOR | 1 | +| ANIMATED_AVATAR | 2 | +| PROFILE_BANNER | 4 | + +## `purchased_flags` + +Bitfield which may track which premium features have ever been bought on this account. +Uses the values of each [premium type](https://discord.com/developers/docs/resources/user#user-object-premium-types) diff --git a/docs/contributing/Reverse Engineering/client/index.md b/docs/contributing/Reverse Engineering/client/index.md new file mode 100644 index 00000000..7b08afb5 --- /dev/null +++ b/docs/contributing/Reverse Engineering/client/index.md @@ -0,0 +1,3 @@ +# Client reverse engineering + +## [Enums](enums.md) diff --git a/docs/contributing/Reverse Engineering/index.md b/docs/contributing/Reverse Engineering/index.md new file mode 100644 index 00000000..0cc41e3c --- /dev/null +++ b/docs/contributing/Reverse Engineering/index.md @@ -0,0 +1,12 @@ +# Reverse Engineering + +This section contains various articles relating to the reverse engineering of Discord and it's client. + +There are various other resources that have been incredibly helpful in our endevours, such as: + +- [Discord user docs](https://docs.discord.food) +- [Luna's unofficial Discord docs](https://luna.gitlab.io/discord-unofficial-docs/) +- [Litecord](https://gitlab.com/litecord/litecord) +- [DiscordLists](https://github.com/Delitefully/DiscordLists) +- [Discord Datamining](https://github.com/Discord-Datamining/Discord-Datamining) +- [Discord.js](https://discord.js.org) and other bot implementations