Skip to content

Commit

Permalink
fix(docs): add server_count field to mock data in getting-started page (
Browse files Browse the repository at this point in the history
  • Loading branch information
chimpdev authored Jan 7, 2025
1 parent a3f1ce4 commit 8c3da63
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions docs/app/getting-started/page.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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, {
Expand All @@ -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(
Expand All @@ -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! 🎉
Expand Down

0 comments on commit 8c3da63

Please sign in to comment.