Skip to content

Commit

Permalink
Updated some docs
Browse files Browse the repository at this point in the history
  • Loading branch information
JustCat80 committed Jun 14, 2021
1 parent f604f61 commit 63dc8fa
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,14 @@ declare namespace Eris {
type InteractionOptions = {
allowedMentions?: AllowedMentions;
content?: string;
embed?: EmbedOptions;
embeds?: EmbedOptions;
flags?: number;
messageReference?: MessageReferenceReply;
tts?: boolean;
type: number;
};

type InteractionContent = Pick<InteractionOptions, "content" | "embeds" | "flags" | "allowedMentions" | "tts">;

// Cache
type Uncached = { id: string };

Expand Down Expand Up @@ -76,7 +77,7 @@ declare namespace Eris {
type MessageContent = string | AdvancedMessageContent;
type MFALevel = 0 | 1;
type PossiblyUncachedMessage = Message | { channel: TextableChannel | { id: string; guild?: Uncached }; guildID?: string; id: string };
type InteractionType = 1 | 2;
type InteractionType = 1 | 2 | 3;

// Permission
type PermissionType = "role" | "member";
Expand Down Expand Up @@ -1027,6 +1028,7 @@ declare namespace Eris {
content?: string;
embeds?: EmbedOptions[];
file?: MessageFile | MessageFile[];
flags?: number;
tts?: boolean;
username?: string;
wait?: boolean;
Expand Down Expand Up @@ -2192,13 +2194,13 @@ declare namespace Eris {
type: number;
version: number;
acknowledge(): Promise<void>;
createFollowup(content: InteractionOptions): Promise<Message>;
createMessage(content: InteractionOptions): Promise<void>;
createFollowup(content: MessageWebhookContent): Promise<Message<GuildTextableChannel>>;
createMessage(content: InteractionContent): Promise<void>;
defer(): Promise<void>;
deferUpdate(): Promise<void>;
delete(messageId: string): Promise<void>;
edit(messageId: string, content: InteractionOptions): Promise<Message>;
editParent(content: InteractionOptions): Promise<void>;
edit(messageId: string, content: MessageWebhookContent): Promise<Message<GuildTextableChannel>>;
editParent(content: MessageWebhookContent): Promise<Message<GuildTextableChannel>>;
}

// If CT (count) is "withMetadata", it will not have count properties
Expand Down

0 comments on commit 63dc8fa

Please sign in to comment.