mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-23 09:35:02 +00:00
Improve empty message detection when rendering tags
This commit is contained in:
parent
52c5d584a6
commit
b5d659fdcc
3 changed files with 43 additions and 5 deletions
6
backend/src/utils/messageIsEmpty.ts
Normal file
6
backend/src/utils/messageIsEmpty.ts
Normal file
|
@ -0,0 +1,6 @@
|
|||
import { MessageContent } from "eris";
|
||||
import { messageHasContent } from "./messageHasContent";
|
||||
|
||||
export function messageIsEmpty(content: MessageContent): boolean {
|
||||
return !messageHasContent(content);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue