diff --git a/index.js b/index.js index e9e9455..b38cead 100644 --- a/index.js +++ b/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":