Merge branch 'version-2' of https://github.com/ThaumRystra/DiceCloud1 into version-2

This commit is contained in:
Stefan Zermatten
2020-10-15 13:49:49 +02:00

View File

@@ -4,6 +4,10 @@ export default function sendWebhook({webhookURL, message, options}){
let urlArray = webhookURL.split('/');
let token = urlArray.pop();
let id = urlArray.pop();
// prevent discord mention exploit
options.disableMentions = 'all';
const hook = new Discord.WebhookClient(id, token);
// Send a message using the webhook
hook.send(message, options)