-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
24a1d03
commit 846a71f
Showing
5 changed files
with
13 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters