From 846a71f9fdbd8252b80502e4ecb6eaa2996a997a Mon Sep 17 00:00:00 2001 From: BrokenEdtz Date: Fri, 2 Jun 2023 22:44:49 +0700 Subject: [PATCH] release v1.0.1 --- package.json | 2 +- src/index.ts | 2 +- src/starboard/index.ts | 2 +- src/starboard/starboard.interfaces.ts | 24 +++++++++--------------- src/starboard/starboard.ts | 2 +- 5 files changed, 13 insertions(+), 19 deletions(-) diff --git a/package.json b/package.json index 7e56478..133ae1a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "starboard-js", - "version": "1.0.0", + "version": "1.0.1", "description": "starboard-js used for who want add starboard feature to the bot", "main": "./dist/index.js", "types": "./dist/index.d.ts", diff --git a/src/index.ts b/src/index.ts index 6995432..be677bc 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1 +1 @@ -export { Starboard, StarboardOptions, StarboardGuild, StarboardGuildOptions, starMessageData } from "./starboard"; \ No newline at end of file +export { StarboardClient, StarboardOptions, StarboardGuild, StarboardGuildOptions, starMessageData } from "./starboard"; \ No newline at end of file diff --git a/src/starboard/index.ts b/src/starboard/index.ts index ff7a688..cf6a554 100644 --- a/src/starboard/index.ts +++ b/src/starboard/index.ts @@ -1,2 +1,2 @@ -export { Starboard } from "./starboard"; +export { StarboardClient } from "./starboard"; export { StarboardOptions, StarboardGuild, StarboardGuildOptions, starMessageData } from "./starboard.interfaces"; \ No newline at end of file diff --git a/src/starboard/starboard.interfaces.ts b/src/starboard/starboard.interfaces.ts index 56a69b8..a532fde 100644 --- a/src/starboard/starboard.interfaces.ts +++ b/src/starboard/starboard.interfaces.ts @@ -1,35 +1,29 @@ -import { Client, Snowflake } from "discord.js" - +import { Client, Snowflake } from "discord.js"; export interface StarboardOptions { /** * Discord Client */ - client: Client - + client: Client; /** * Preload data */ - Guilds?: StarboardGuild[] + Guilds?: StarboardGuild[]; } - export interface StarboardGuild { - id: Snowflake - options: StarboardGuildOptions + id: Snowflake; + options: StarboardGuildOptions; } - export interface StarboardGuildOptions { /** * Amount of stars required in order to be registered as a starred channel */ - starCount: number - + starCount: number; /** * Channel to send starred messages */ - starboardChannel: Snowflake + starboardChannel: Snowflake; } - export interface starMessageData { - origin: Snowflake - id: Snowflake + origin: Snowflake; + id: Snowflake; } \ No newline at end of file diff --git a/src/starboard/starboard.ts b/src/starboard/starboard.ts index 93e6024..de43f4c 100644 --- a/src/starboard/starboard.ts +++ b/src/starboard/starboard.ts @@ -14,7 +14,7 @@ import { StarboardGuild, } from "./starboard.interfaces"; -export class Starboard { +export class StarboardClient { public client: Client; public guilds: StarboardGuild[]; public cache: Collection = new Collection();