Test Discord direct message
POST
Send a test direct message to a Discord user through the running bot
header
X-API-Key<token>API key authentication using X-API-Key header
Discord user to send a test direct message to
application/json- body
Discord user to send a test direct message to
discordId*stringDiscord user ID to message
Match
^\d{17,20}$Default Response
application/json- response
Result of sending a test notification
success*booleanWhether the test was delivered
statusCode?numberHTTP status from the target, when one responded
error?stringWhy the test failed, in plain language
responseTime*numberTime the test took, in milliseconds
curl -X POST 'http://localhost:3003/v1/notifications/test/discord-dm' \ -H 'Content-Type: application/json' \ -d '{ "discordId": "string"}'Example Response
{ "success": true, "statusCode": 0, "error": "string", "responseTime": 0}