Skip to content

Commit

Permalink
update: release v0.2.14
Browse files Browse the repository at this point in the history
  • Loading branch information
POPPIN-FUMI committed Dec 1, 2023
1 parent 0944daa commit 807c529
Show file tree
Hide file tree
Showing 36 changed files with 131 additions and 86 deletions.
1 change: 1 addition & 0 deletions dist/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export { discordChangeLog } from './lib/discordChangeLog';
export { getReleaseInfoAsJson } from './lib/discordChangeLog';
export { getGuildMembers } from './lib/getGuildMembers';
export { deployCommands } from './lib/deployCommands';
export { interactionMessage } from './lib/interactionMessage';
export type { ReleaseInfo } from './lib/discordChangeLog';
export type { DiscordUser, GuildMember } from './types/DiscordUser';
export type { DiscordRouterParams, Channel, CommandData, CommandOption, Guild, Member, User, ActionData, } from './types/discordRouterParams';
Expand Down
108 changes: 54 additions & 54 deletions dist/index.js

Large diffs are not rendered by default.

26 changes: 26 additions & 0 deletions dist/lib/interactionMessage.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
/**
* Sends a response to a Discord interaction.
*
* @param {string} token - The bot's token used for authentication with the Discord API.
* @param {string} interactionId - The ID of the interaction to respond to.
* @param {string} interactionToken - The token specific to the interaction.
* @param {any} body - The content of the response message.
* @returns {Promise<boolean>} A promise that resolves to true if the response is sent successfully.
* @throws {Error} Will throw an error if there is a problem sending the response.
*
* @example
* ```
* const token = 'your_discord_token_here'
* const interactionId = 'your_interaction_id_here'
* const interactionToken = 'your_interaction_token_here'
* const body = {
* type: 4,
* data: {
* content: 'Hello, world!',
* },
* }
* const result = await interactionMessage(token, interactionId, interactionToken, body)
* console.log(result); // true
* ```
*/
export declare function interactionMessage(token: string, interactionId: string, interactionToken: string, body: any): Promise<boolean>;
2 changes: 1 addition & 1 deletion dist/lib/version.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export declare const VERSION = "0.2.13";
export declare const VERSION = "0.2.14";
7 changes: 7 additions & 0 deletions docs/assets/highlight.css
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
--dark-hl-8: #B5CEA8;
--light-hl-9: #267F99;
--dark-hl-9: #4EC9B0;
--light-hl-10: #008000;
--dark-hl-10: #6A9955;
--light-code-background: #FFFFFF;
--dark-code-background: #1E1E1E;
}
Expand All @@ -34,6 +36,7 @@
--hl-7: var(--light-hl-7);
--hl-8: var(--light-hl-8);
--hl-9: var(--light-hl-9);
--hl-10: var(--light-hl-10);
--code-background: var(--light-code-background);
} }

Expand All @@ -48,6 +51,7 @@
--hl-7: var(--dark-hl-7);
--hl-8: var(--dark-hl-8);
--hl-9: var(--dark-hl-9);
--hl-10: var(--dark-hl-10);
--code-background: var(--dark-code-background);
} }

Expand All @@ -62,6 +66,7 @@
--hl-7: var(--light-hl-7);
--hl-8: var(--light-hl-8);
--hl-9: var(--light-hl-9);
--hl-10: var(--light-hl-10);
--code-background: var(--light-code-background);
}

Expand All @@ -76,6 +81,7 @@
--hl-7: var(--dark-hl-7);
--hl-8: var(--dark-hl-8);
--hl-9: var(--dark-hl-9);
--hl-10: var(--dark-hl-10);
--code-background: var(--dark-code-background);
}

Expand All @@ -89,4 +95,5 @@
.hl-7 { color: var(--hl-7); }
.hl-8 { color: var(--hl-8); }
.hl-9 { color: var(--hl-9); }
.hl-10 { color: var(--hl-10); }
pre, code { background: var(--code-background); }
2 changes: 1 addition & 1 deletion docs/assets/navigation.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/assets/search.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/functions/addRoleToUser.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/createPrivateChannel.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/createTextChannel.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/deferResponse.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/deleteChannel.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/deployCommands.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/discordChangeLog.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/getGuildMembers.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/getReleaseInfoAsJson.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/getUserRoles.html

Large diffs are not rendered by default.

Loading

0 comments on commit 807c529

Please sign in to comment.