As of now, I am creating my own styled widget using the JSON from https://discordapp.com/api/servers/GUILD-ID/widget.json
, which works fine so far. However, this JSON is limited to 99 users, and that's a problem for me.
So I thought, I could just re-create it, using the official Discord API. However, there is some information, I can't find in the API, or maybe I'm just blind.
- I am missing the information, which user is currently in which voice channel
- I am missing the online status of a user
- I am missing the avatar URL
- Whether the fields
mute
anddeaf
exist within the user object, they are null/empty, while the widget.json displays the correct information
So a user object in the widget.json looks like this:
{
id: "0",
username: "xxxx",
discriminator: "0000",
avatar: null,
status: "online",
deaf: false,
mute: false,
self_deaf: true,
self_mute: true,
suppress: false,
channel_id: "555555555555555555",
avatar_url: "https://cdn.discordapp.com/widget-avatars/XXXXXXXXXXXXXXX"
}
while the API returns this:
{
user: {
id: "999999999999999999",
username: "xxxx",
avatar: "257281f9b2aa93be7c12f5c49e122ca3",
discriminator: "1234",
public_flags: 576
},
roles: [
"123456789123456789",
"987654321987654321"
],
nick: "yyyy",
premium_since: null,
joined_at: "1970-01-01T00:00:00.000000+00:00",
is_pending: false,
mute: false,
deaf: false
}
which is pretty much unusable for my case.