Skip to content

Commit

Permalink
fix(typings): MessageOptions#split (#3834)
Browse files Browse the repository at this point in the history
  • Loading branch information
monbrey authored Feb 26, 2020
1 parent b0aed05 commit cf646b5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions typings/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -837,6 +837,7 @@ declare module 'discord.js' {
public isMentioned(data: GuildChannel | User | Role | Snowflake): boolean;
public pin(): Promise<Message>;
public react(emoji: string | Emoji | ReactionEmoji): Promise<MessageReaction>;
public reply(content?: StringResolvable, options?: MessageOptions & { split: false }): Promise<Message>;
public reply(content?: StringResolvable, options?: MessageOptions): Promise<Message | Message[]>;
public reply(options?: MessageOptions): Promise<Message | Message[]>;
public suppressEmbeds(suppress?: boolean): Promise<Message>;
Expand Down Expand Up @@ -1660,6 +1661,7 @@ declare module 'discord.js' {
public delete(reason?: string): Promise<void>;
public edit(name?: string, avatar?: BufferResolvable): Promise<Webhook>;
public edit(options?: WebhookEditOptions, reason?: string): Promise<Webhook>;
public send(content?: StringResolvable, options?: WebhookMessageOptions & { split: false } | RichEmbed | Attachment): Promise<Message>;
public send(content?: StringResolvable, options?: WebhookMessageOptions | RichEmbed | Attachment): Promise<Message | Message[]>;
public send(options?: WebhookMessageOptions | RichEmbed | Attachment): Promise<Message | Message[]>;
public sendCode(lang: string, content: StringResolvable, options?: WebhookMessageOptions): Promise<Message | Message[]>;
Expand Down Expand Up @@ -1700,6 +1702,7 @@ declare module 'discord.js' {
type PartialTextBasedChannelFields = {
lastMessage: Message;
acknowledge(): Promise<DMChannel | GroupDMChannel | TextChannel>;
send(content?: StringResolvable, options?: MessageOptions & { split: false } | RichEmbed | Attachment): Promise<Message>;
send(content?: StringResolvable, options?: MessageOptions | RichEmbed | Attachment): Promise<Message | Message[]>;
send(options?: MessageOptions | RichEmbed | Attachment): Promise<Message | Message[]>;
sendCode(lang: string, content: StringResolvable, options?: MessageOptions): Promise<Message | Message[]>;
Expand Down

0 comments on commit cf646b5

Please sign in to comment.