Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(docs): add server_count field to mock data in getting-started page #156

Merged
merged 1 commit into from
Jan 7, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading