@stelliajs/framework 1.5.1 → 1.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Client, type ClientOptions, type Interaction } from "discord.js";
|
|
2
2
|
import { type ManagerOptions } from "../managers/index.js";
|
|
3
|
-
import { type ClientEnvironment, type
|
|
3
|
+
import { type ClientEnvironment, type GuildConfiguration, type GuildsConfiguration, type Managers } from "../typescript/index.js";
|
|
4
4
|
export declare class StelliaClient<Ready extends boolean = boolean> extends Client<Ready> {
|
|
5
5
|
private readonly utils;
|
|
6
6
|
readonly managers: Managers;
|
|
@@ -9,7 +9,7 @@ export declare class StelliaClient<Ready extends boolean = boolean> extends Clie
|
|
|
9
9
|
connect: (token: string) => Promise<void>;
|
|
10
10
|
initializeCommands: () => Promise<void>;
|
|
11
11
|
getGuildsConfiguration: <CustomGuildsConfiguration extends GuildsConfiguration>() => Promise<CustomGuildsConfiguration>;
|
|
12
|
-
getGuildConfiguration: (guildId: string) =>
|
|
12
|
+
getGuildConfiguration: <CustomGuildConfiguration extends GuildConfiguration>(guildId: string) => CustomGuildConfiguration | undefined;
|
|
13
13
|
handleInteraction: (interaction: Interaction<"cached">) => Promise<void>;
|
|
14
14
|
private areManagersLoaded;
|
|
15
15
|
private static convertFilePathToProduction;
|
|
@@ -7,7 +7,7 @@ export declare class StelliaUtils {
|
|
|
7
7
|
private guildsConfiguration;
|
|
8
8
|
constructor(client: StelliaClient);
|
|
9
9
|
initializeCommands: () => Promise<void>;
|
|
10
|
-
getGuildConfiguration: (guildId: string) =>
|
|
10
|
+
getGuildConfiguration: <CustomGuildConfiguration extends GuildConfiguration>(guildId: string) => CustomGuildConfiguration | undefined;
|
|
11
11
|
handleInteraction: (interaction: Interaction<"cached">) => Promise<void>;
|
|
12
12
|
private handleAutoCompleteInteraction;
|
|
13
13
|
private handleButtonInteraction;
|