Skip to content

Commit

Permalink
release v1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
brokenedtzjs committed Jun 2, 2023
1 parent 24a1d03 commit 846a71f
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 19 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export { Starboard, StarboardOptions, StarboardGuild, StarboardGuildOptions, starMessageData } from "./starboard";
export { StarboardClient, StarboardOptions, StarboardGuild, StarboardGuildOptions, starMessageData } from "./starboard";
2 changes: 1 addition & 1 deletion src/starboard/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export { Starboard } from "./starboard";
export { StarboardClient } from "./starboard";
export { StarboardOptions, StarboardGuild, StarboardGuildOptions, starMessageData } from "./starboard.interfaces";
24 changes: 9 additions & 15 deletions src/starboard/starboard.interfaces.ts
Original file line number Diff line number Diff line change
@@ -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;
}
2 changes: 1 addition & 1 deletion src/starboard/starboard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {
StarboardGuild,
} from "./starboard.interfaces";

export class Starboard {
export class StarboardClient {
public client: Client;
public guilds: StarboardGuild[];
public cache: Collection<Snowflake, starMessageData[]> = new Collection();
Expand Down

0 comments on commit 846a71f

Please sign in to comment.