Fix automatic webhook creation
This commit is contained in:
parent
25e7043fa5
commit
f4d913b7c4
2
index.js
2
index.js
@ -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) {
|
||||
|
Reference in New Issue
Block a user