Fix automatic webhook creation

This commit is contained in:
Lamp 2019-10-04 15:13:16 -07:00
parent 25e7043fa5
commit f4d913b7c4

@ -44,7 +44,7 @@
let wh = whs.find(w => w.name == "fookat bridge");
if (wh) dc.wh = wh;
else {
dc.wh = await dc.createWebhook({name: "fookat bridge", reason: "Automatically created webhook to bridge to fookat.tk"});
dc.wh = await dc.createWebhook("fookat bridge", {reason: "Automatically created webhook to bridge to fookat.tk"});
}
}
} catch(e) {