fix(APIMessage): edit shouldn't remove content (#3129)

* edit shouldn't remove content

If undefined is passed to the api, content isn't removed in such a case where you are only editing the embed.

* fix a related doc string

* update typings

* requested changes
This commit is contained in:
bdistin
2019-03-08 10:57:59 -06:00
committed by SpaceEEC
parent 132788937a
commit 1673b6f8f5
3 changed files with 17 additions and 12 deletions

2
typings/index.d.ts vendored
View File

@@ -56,7 +56,7 @@ declare module 'discord.js' {
isWebhook?: boolean
): MessageOptions | WebhookMessageOptions;
public makeContent(): string | string[];
public makeContent(): string | string[] | undefined;
public resolve(): Promise<this>;
public resolveData(): this;
public resolveFiles(): Promise<this>;