Created
October 21, 2023 06:37
-
-
Save o-az/24055340cc58fecff0b07c7cdf4c8b21 to your computer and use it in GitHub Desktop.
Sends a message to a Discord channel via a Discord bot using cURL cli command
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# replace CHANNEL_ID and BOT_SECRET with your values | |
curl --include \ | |
--request POST "https://discord.com/api/channels/CHANNEL_ID/messages" \ | |
--header "Content-Type: application/json" \ | |
--header "Authorization: Bot BOT_SECRET" \ | |
--data '{ "content": "lorem ipsum" }' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment