This Map Images API is designed to display preview images of individual maps for the CS2 Discord Utilities plugin.
This API is community-driven, allowing anyone to contribute preview images for maps.
Display maps
How to Add Your Own Map Images
1. On our Discord Server
- Join our Discord server ( Discord Invite )
- In any channel (e.g. #general or #suggestions), post the image and the name of the map.
2. Or create a pull request
- Fork the repository by clicking the "Fork" button on the top right of the repository page.
- Clone your forked repository to your local machine using the command:
git clone -b api-pages https://github.com/YOUR_NAME/CS2-Discord-Utilities.git
- Navigate to the cloned repository directory:
cd CS2-Discord-Utilities
- Add your map image in the appropriate directory. The image should be in PNG format and named appropriately, e.g., `map_name.png`.
- Edit the `map_images.json` file to include your new map image entry. Add a new object to the JSON array with the name of your map image.
- Commit your changes:
git add .
git commit -m "Added map_name"
- Push the changes to your forked repository:
git push origin api-pages
- Create a pull request to the original repository. Go to your forked repository on GitHub and click the "New pull request" button.