mirror of
https://github.com/fergalmoran/onearmy-community-platform.git
synced 2025-12-24 02:30:50 +00:00
chore: make format match other discord webhooks
This commit is contained in:
@@ -69,9 +69,7 @@ export const notifyAcceptedQuestion = functions
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
const response = await axios.post(DISCORD_WEBHOOK_URL, {
|
const response = await axios.post(DISCORD_WEBHOOK_URL, {
|
||||||
json: {
|
content: `❓ ${username} has a new question: ${title}\nHelp them out and answer here: <${SITE_URL}/questions/${slug}>`,
|
||||||
text: `❓ ${username} has a new question: ${title}\n Help them out and answer here: ${SITE_URL}/questions/${slug}`,
|
|
||||||
},
|
|
||||||
})
|
})
|
||||||
handleResponse(response)
|
handleResponse(response)
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|||||||
Reference in New Issue
Block a user