Start move to d.js

This commit is contained in:
Dark 2021-05-31 03:30:55 +02:00
parent a9e0466e33
commit 9fc045cd38
No known key found for this signature in database
GPG key ID: 384C4B4F5B1E25A8
17 changed files with 339 additions and 6317 deletions

View file

@ -1,4 +1,4 @@
import { MessageContent } from "eris";
import { APIMessage, MessageOptions } from "discord.js";
function embedHasContent(embed: any) {
for (const [key, value] of Object.entries(embed)) {
@ -18,7 +18,7 @@ function embedHasContent(embed: any) {
return false;
}
export function messageHasContent(content: MessageContent): boolean {
export function messageHasContent(content: string | MessageOptions): boolean {
if (typeof content === "string") {
return content.trim() !== "";
}