Skip to content

Commit

Permalink
update: release v0.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
POPPIN-FUMI committed Oct 30, 2023
1 parent ae23d4d commit 9505bf8
Show file tree
Hide file tree
Showing 29 changed files with 1,588 additions and 106 deletions.
3 changes: 2 additions & 1 deletion dist/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ export { getUserRoles } from './lib/getUserRoles';
export { deferResponse } from './lib/deferResponse';
export { updateResponse } from './lib/updateResponse';
export { removeUserRole } from './lib/removeUserRole';
export type { Message, TextChannel, TextChannelType } from 'discord.js';
export { addRoleToUser } from './lib/addRoleToUser';
export type { Message, TextChannel, TextChannelType, MessageComponentType, ButtonStyle, InteractionType, InteractionResponseType, Interaction, MessageComponentInteraction, } from 'discord.js';
148 changes: 74 additions & 74 deletions dist/index.js

Large diffs are not rendered by default.

28 changes: 28 additions & 0 deletions dist/lib/addRoleToUser.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
/**
* @module addRoleToUser
* Adds a specified role to a user within a specific guild.
*
* @param guildId - The ID of the guild where the user and role are located.
* @param userId - The ID of the user to whom the role will be added.
* @param roleId - The ID of the role to be added to the user.
* @returns A promise that resolves to void when the role is successfully added.
* @throws Will throw an error if there is a problem adding the role.
*
* @example
* const token = 'your_discord_token_here';
* const guildId = 'your_guild_id_here';
* const userId = 'your_user_id_here';
* const roleId = 'your_role_id_here';
*
* const run = async () => {
* try {
* await addRoleToUser(token, guildId, userId, roleId);
* console.log('Role added successfully.');
* } catch (error) {
* console.error(`Error: ${error.message}`);
* }
* }
*
* run();
*/
export declare function addRoleToUser(token: string, guildId: string, userId: string, roleId: string): Promise<void>;
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.1.0";
export declare const VERSION = "0.1.1";
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.

11 changes: 9 additions & 2 deletions docs/classes/Message.html
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ <h3 class="tsd-anchor-link"><span>await<wbr/>Message<wbr/>Component</span><a hre
<h4>Type Parameters</h4>
<ul class="tsd-type-parameter-list">
<li>
<h4><span class="tsd-kind-type-parameter">T</span><span class="tsd-signature-symbol"> extends </span><span class="tsd-signature-type ">MessageComponentType</span></h4></li></ul></section>
<h4><span class="tsd-kind-type-parameter">T</span><span class="tsd-signature-symbol"> extends </span><a href="../types/MessageComponentType.html" class="tsd-signature-type tsd-kind-type-alias">MessageComponentType</a></h4></li></ul></section>
<div class="tsd-parameters">
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameter-list">
Expand Down Expand Up @@ -462,7 +462,7 @@ <h3 class="tsd-anchor-link"><span>create<wbr/>Message<wbr/>Component<wbr/>Collec
<h4>Type Parameters</h4>
<ul class="tsd-type-parameter-list">
<li>
<h4><span class="tsd-kind-type-parameter">T</span><span class="tsd-signature-symbol"> extends </span><span class="tsd-signature-type ">MessageComponentType</span></h4></li></ul></section>
<h4><span class="tsd-kind-type-parameter">T</span><span class="tsd-signature-symbol"> extends </span><a href="../types/MessageComponentType.html" class="tsd-signature-type tsd-kind-type-alias">MessageComponentType</a></h4></li></ul></section>
<div class="tsd-parameters">
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameter-list">
Expand Down Expand Up @@ -781,9 +781,16 @@ <h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><use href="#icon
<div class="site-menu">
<nav class="tsd-navigation"><a href="../modules.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1"></use></svg><span>@skeet-framework/discord-utils</span></a>
<ul class="tsd-small-nested-navigation" id="tsd-nav-container" data-base="..">
<li><a href="../enums/ButtonStyle.html" class="tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-8"></use></svg>ButtonStyle</a></li>
<li><a href="../enums/InteractionResponseType.html" class="tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-8"></use></svg>InteractionResponseType</a></li>
<li><a href="../enums/InteractionType.html" class="tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-8"></use></svg>InteractionType</a></li>
<li><a href="Message.html" class="current tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg>Message</a></li>
<li><a href="MessageComponentInteraction.html" class="tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg>MessageComponentInteraction</a></li>
<li><a href="TextChannel.html" class="tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg>TextChannel</a></li>
<li><a href="../types/Interaction.html" class="tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2097152"></use></svg>Interaction</a></li>
<li><a href="../types/MessageComponentType.html" class="tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2097152"></use></svg>MessageComponentType</a></li>
<li><a href="../types/TextChannelType.html" class="tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2097152"></use></svg>TextChannelType</a></li>
<li><a href="../functions/addRoleToUser.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-64"></use></svg>addRoleToUser</a></li>
<li><a href="../functions/createPrivateChannel.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-64"></use></svg>createPrivateChannel</a></li>
<li><a href="../functions/createTextChannel.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-64"></use></svg>createTextChannel</a></li>
<li><a href="../functions/deferResponse.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-64"></use></svg>deferResponse</a></li>
Expand Down
Loading

0 comments on commit 9505bf8

Please sign in to comment.