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 rawBody = data.data.body;
|
||||||
const text = data.data.productText;
|
const text = data.data.productText;
|
||||||
const product_id_raw = data.data.raw
|
const product_id_raw = data.data.raw
|
||||||
|
@ -554,8 +554,7 @@ function connectWebSocket() {
|
||||||
const data = JSON.parse(rawData);
|
const data = JSON.parse(rawData);
|
||||||
switch (data.type) {
|
switch (data.type) {
|
||||||
case "iem-message":
|
case "iem-message":
|
||||||
handleDiscordGuilds(data);
|
handleDiscord(data);
|
||||||
handleDiscordDMs(data);
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case "internal-response":
|
case "internal-response":
|
||||||
|
|
Loading…
Reference in a new issue