File tree 4 files changed +24
-5
lines changed
4 files changed +24
-5
lines changed Original file line number Diff line number Diff line change @@ -2,14 +2,17 @@ import fetch from "node-fetch";
2
2
import {
3
3
ApplicationCommand ,
4
4
PartialApplicationCommand ,
5
- } from "./structures/ApplicationCommand" ;
6
- import { snowflake } from "./structures/Snowflake" ;
5
+ snowflake ,
6
+ } from "./structures" ;
7
+
7
8
import { verifySignature as _verifySignature } from "./utils" ;
8
9
9
10
const DISCORD_ENDPOINT = "https://discord.com/api/v8/" ;
10
11
11
12
const makeEndpoint = ( endpoint ) => `${ DISCORD_ENDPOINT } ${ endpoint } ` ;
12
13
14
+ export * from "./structures" ;
15
+
13
16
export class DiscordInteractions {
14
17
private publicKey : snowflake ;
15
18
private applicationid : snowflake ;
Original file line number Diff line number Diff line change @@ -3,11 +3,11 @@ import { ApplicationCommandOptionType } from "./ApplicationCommandOptions";
3
3
type ValueData = {
4
4
name : string ;
5
5
value : ApplicationCommandOptionType ;
6
- }
6
+ } ;
7
7
8
8
type NestedData = {
9
9
name : string ;
10
10
options : ApplicationCommandInteractionDataOption [ ] ;
11
- }
11
+ } ;
12
12
13
13
export type ApplicationCommandInteractionDataOption = ValueData | NestedData ;
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ type ApplicationCommand = {
11
11
channelId : snowflake ;
12
12
member : GuildMember ;
13
13
token : string ;
14
- }
14
+ } ;
15
15
16
16
export type Interaction = ApplicationCommand | {
17
17
id : snowflake ;
Original file line number Diff line number Diff line change
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" ;
You can’t perform that action at this time.
0 commit comments