Skip to content

Commit

Permalink
Disable embed page in message for discord webhooks
Browse files Browse the repository at this point in the history
  • Loading branch information
alromh87 committed Mar 24, 2020
1 parent 6551911 commit f828108
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions functions/src/Integrations/firebase-discord.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export const notifyPinAccepted = functions.firestore
const { _id, type } = info
await axios
.post(DISCORD_WEBHOOK_URL, {
content: `📍 *New ${type}* pin from ${_id}. \n Location here ${SITE_URL}/map/#${_id}`,
content: `📍 *New ${type}* pin from ${_id}. \n Location here <${SITE_URL}/map/#${_id}>`,
})
.then(handleResponse, handleErr)
.catch(handleErr)
Expand All @@ -34,7 +34,7 @@ export const notifyHowToAccepted = functions.firestore
await axios
.post(DISCORD_WEBHOOK_URL, {
content: `📓 Yeah! New How To **${title}** by *${_createdBy}*
check it out: ${SITE_URL}/how-to/${slug}`,
check it out: <${SITE_URL}/how-to/${slug}>`,
})
.then(handleResponse, handleErr)
.catch(handleErr)
Expand All @@ -53,7 +53,7 @@ export const notifyEventAccepted = functions.firestore
await axios
.post(DISCORD_WEBHOOK_URL, {
content: `📅 Jeej new event in **${location}** by *${user}* posted here:
${url}`,
<${url}>`,
})
.then(handleResponse, handleErr)
.catch(handleErr)
Expand Down

0 comments on commit f828108

Please sign in to comment.