Type fixes for djs
This commit is contained in:
parent
653d6c1dc2
commit
0822fc15e5
130 changed files with 8877 additions and 411 deletions
|
@ -27,8 +27,12 @@ export function messageHasContent(content: string | MessageOptions): boolean {
|
|||
return true;
|
||||
}
|
||||
|
||||
if (content.embed && embedHasContent(content.embed)) {
|
||||
return true;
|
||||
if (content.embeds) {
|
||||
for (const embed of content.embeds) {
|
||||
if (embed && embedHasContent(embed)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue