Closed yangwao closed 2 years ago
I can do this. I'll need the guild id
of the server to be able to fetch data relevant to the discord server, can you please provide me with that?
The steps to find the guild id is:
In Discord, open your User Settings by clicking the Settings Cog next to your user name on the bottom. Go to Appearance and enable Developer Mode under the Advanced section, then close User Settings. Open your Discord server, right-click on the server name, then select Copy ID Paste the Server ID on your text editor for later If desired, you can disable Developer Mode now.
The API call that we'll use is: GET/guilds/{guild.id}/preview
https://discord.com/developers/docs/resources/guild#get-guild-preview
I guess it's this one?
840514076538830888
seems matching with widget https://github.com/kodadot/nft-gallery/blob/main/components/landing/Landing.vue#L72
https://discord.com/api/guilds/840514076538830888/widget.json
@atharva3010 any progress on this?
Yeah, I'd quote someone,
Here starts the idea to have a better discord widget so people could easier find us!
Spec
Ref
We will avoid a lot of small unnecessary requests tho!