Skip to content

Commit

Permalink
fix ts docs
Browse files Browse the repository at this point in the history
data isn't optional for CommandInteraction and ComponentInteraction
componentType isn't optional for ComponentInteraction
data is unknown for UnknownInteraction
type is numberfor UnknownInteraction
  • Loading branch information
JustCat80 committed Jul 31, 2021
1 parent 01329b7 commit b385744
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2268,7 +2268,7 @@ declare namespace Eris {
export class CommandInteraction extends Interaction {
type: 2;
channelID: string;
data?: {
data: {
id: string;
name: string;
resolved?: {
Expand All @@ -2295,8 +2295,8 @@ declare namespace Eris {

export class ComponentInteraction extends Interaction {
channelID: string;
data?: {
componentType?: 2 | 3;
data: {
componentType: 2 | 3;
custom_id: string;
values?: string[];
};
Expand All @@ -2319,11 +2319,11 @@ declare namespace Eris {

export class UnknownInteraction extends Interaction {
channelID?: string;
data?: object;
data?: unknown;
guildID?: string;
member?: Member;
message?: Message;
type: Exclude<number, InteractionType>;
type: number;
user?: User;
createFollowup(content: string | InteractionWebhookContent): Promise<Message>;
createMessage(content: string | InteractionContent): Promise<void>;
Expand Down

0 comments on commit b385744

Please sign in to comment.