From 8c3da635b23be3ddf864794f07cd02d614d3f18f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=B6khan=20Bulut?= Date: Tue, 7 Jan 2025 12:39:57 +0300 Subject: [PATCH] fix(docs): add server_count field to mock data in getting-started page (#156) --- docs/app/getting-started/page.mdx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/docs/app/getting-started/page.mdx b/docs/app/getting-started/page.mdx index 37879297..fca564aa 100644 --- a/docs/app/getting-started/page.mdx +++ b/docs/app/getting-started/page.mdx @@ -37,7 +37,8 @@ const axios = require('axios'); const apiKey = process.env.DISCORD_PLACE_API_KEY; // You should use environment variables to store your API key const mockData = { // This is just a mock data to demonstrate the usage - command_count: 0 + command_count: 0, + server_count: 0 } axios.patch('https://api.discord.place/bots/YOUR_BOT_ID/stats', mockData, { @@ -61,7 +62,8 @@ import requests api_key = os.getenv('DISCORD_PLACE_API_KEY') # You should use environment variables to store your API key mock_data = { # This is just a mock data to demonstrate the usage - 'command_count': 0 + 'command_count': 0, + 'server_count': 0 } response = requests.patch( @@ -79,7 +81,7 @@ print(response.json()) curl -X PATCH https://api.discord.place/bots/YOUR_BOT_ID/stats \ -H "Authorization: YOUR_API_KEY_HERE" \ -H "Content-Type: application/json" \ - -d '{"command_count": 0}' + -d '{"command_count": 0,"server_count": 0}' ``` #### Congratulations! 🎉