Start move to d.js
This commit is contained in:
parent
a9e0466e33
commit
9fc045cd38
17 changed files with 339 additions and 6317 deletions
|
@ -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() !== "";
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue