face-hh / discordmium

Discordmium brings the Chromium browser instance in Discord, of course limited to the Discord API. - Made for Documatic Hackathon
https://facedev.xyz
69 stars 17 forks source link

Blacklist Error #13

Closed Audomations closed 1 year ago

Audomations commented 1 year ago

It seems that this error has appeared for me.

@Audomations ➜ /workspaces/codespaces-blank $ node .
Connected to Discord!
/workspaces/codespaces-blank/node_modules/discordmium/index.js:110
                                if(blacklist.includes(int.data.options[0].value)) return int.createFollowup('Blacklisted content detected, please refrain from using such keywords.');
                                                                      ^

TypeError: Cannot read properties of undefined (reading '0')
    at Client.<anonymous> (/workspaces/codespaces-blank/node_modules/discordmium/index.js:110:43)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
face-hh commented 1 year ago

I will commit a fix soon, till then, replace the content in () with ?. instead of ..

face-hh commented 1 year ago

v1.0.7 should fix this.