This commit is contained in:
parent
3f33f8f708
commit
873b3ff6c9
5
index.js
5
index.js
|
@ -356,7 +356,7 @@ Image and product text are optional, but if they exist, they will be in the data
|
|||
|
||||
*/
|
||||
|
||||
const handleDiscordGuilds = function (data) {
|
||||
const handleDiscord = function (data) {
|
||||
const rawBody = data.data.body;
|
||||
const text = data.data.productText;
|
||||
const product_id_raw = data.data.raw
|
||||
|
@ -554,8 +554,7 @@ function connectWebSocket() {
|
|||
const data = JSON.parse(rawData);
|
||||
switch (data.type) {
|
||||
case "iem-message":
|
||||
handleDiscordGuilds(data);
|
||||
handleDiscordDMs(data);
|
||||
handleDiscord(data);
|
||||
break;
|
||||
|
||||
case "internal-response":
|
||||
|
|
Loading…
Reference in a new issue