Server Sidebar
The server sidebar is composed of the server banner with the title on top, and a list of categories and channels below.
Categories may be collapsed, and continue to show the active channels when collapsed

The server sidebar as it appears in Revolt for Web
Ordered Channels Algorithm
- Initialise a set of uncategorised channel IDs from server channels the client may access.
- Initialise an empty list of categories
- If server.categories are defined, for each category:
- Remove all the channels defined in the category from set
- Add category to list
- If the set is not empty:
- Find the "default" category if it exists in
- Merge the "default" category channels if they exist with and preceding the set
- Create a category with id="default" and add it to the start of the list if it does not exist
- Return the list