Skip to content

Instantly share code, notes, and snippets.

@o-az
Created October 21, 2023 06:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save o-az/24055340cc58fecff0b07c7cdf4c8b21 to your computer and use it in GitHub Desktop.
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
# 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