Skip to content

Commit bdf6219

Browse files
committed
Export all types from index
1 parent 35b37d9 commit bdf6219

File tree

4 files changed

+24
-5
lines changed

4 files changed

+24
-5
lines changed

src/index.ts

+5-2
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,17 @@ import fetch from "node-fetch";
22
import {
33
ApplicationCommand,
44
PartialApplicationCommand,
5-
} from "./structures/ApplicationCommand";
6-
import { snowflake } from "./structures/Snowflake";
5+
snowflake,
6+
} from "./structures";
7+
78
import { verifySignature as _verifySignature } from "./utils";
89

910
const DISCORD_ENDPOINT = "https://discord.com/api/v8/";
1011

1112
const makeEndpoint = (endpoint) => `${DISCORD_ENDPOINT}${endpoint}`;
1213

14+
export * from "./structures";
15+
1316
export class DiscordInteractions {
1417
private publicKey: snowflake;
1518
private applicationid: snowflake;

src/structures/ApplicationCommandInteractionDataOption.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ import { ApplicationCommandOptionType } from "./ApplicationCommandOptions";
33
type ValueData = {
44
name: string;
55
value: ApplicationCommandOptionType;
6-
}
6+
};
77

88
type NestedData = {
99
name: string;
1010
options: ApplicationCommandInteractionDataOption[];
11-
}
11+
};
1212

1313
export type ApplicationCommandInteractionDataOption = ValueData | NestedData;

src/structures/Interaction.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ type ApplicationCommand = {
1111
channelId: snowflake;
1212
member: GuildMember;
1313
token: string;
14-
}
14+
};
1515

1616
export type Interaction = ApplicationCommand | {
1717
id: snowflake;

src/structures/index.ts

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
export * from "./AllowedMentions";
2+
export * from "./ApplicationCommand";
3+
export * from "./ApplicationCommandInteractionData";
4+
export * from "./ApplicationCommandInteractionDataOption";
5+
export * from "./ApplicationCommandOptionChoice";
6+
export * from "./ApplicationCommandOptions";
7+
export * from "./Embed";
8+
export * from "./GuildMember";
9+
export * from "./Interaction";
10+
export * from "./InteractionApplicationCommandCallbackData";
11+
export * from "./InteractionResponse";
12+
export * from "./InteractionResponseType";
13+
export * from "./InteractionType";
14+
export * from "./MessageFlags";
15+
export * from "./Snowflake";
16+
export * from "./User";

0 commit comments

Comments
 (0)