spike-2 / Spike-2

Server specific Discord bot
https://spike-2.github.io
1 stars 0 forks source link

Fix error with empty string message content #70

Closed brandoningli closed 2 years ago

brandoningli commented 2 years ago

Related bugs/feature requests

Describe the changes

No longer arbitrarily sets message content to empty string.

Expected behavior

The error shouldn't happen now.

Screenshots

New npm dependencies

Testing Instructions

Additional context

?? is the null coalesce operator. Basically "value on left, unless it's null, then value on right"