zumito-framework 1.3.0 → 1.4.1
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.
package/dist/index.d.ts
CHANGED
|
@@ -30,7 +30,7 @@ import { Route, RouteMethod } from './definitions/Route.js';
|
|
|
30
30
|
import { InteractionHandler } from './services/handlers/InteractionHandler.js';
|
|
31
31
|
import { CommandManager } from './services/managers/CommandManager.js';
|
|
32
32
|
import { ErrorType } from './definitions/ErrorType.js';
|
|
33
|
-
import { InviteUrlGenerator } from '
|
|
33
|
+
import { InviteUrlGenerator } from './services/utilities/InviteUrlGenerator.js';
|
|
34
34
|
export { ModalSubmitParameters } from './definitions/parameters/ModalSubmitParameters.js';
|
|
35
35
|
export { CommandBinds } from './definitions/commands/CommandBinds.js';
|
|
36
36
|
export { Injectable } from './definitions/decorators/Injectable.decorator.js';
|
package/dist/index.js
CHANGED
|
@@ -23,7 +23,7 @@ import { Route, RouteMethod } from './definitions/Route.js';
|
|
|
23
23
|
import { InteractionHandler } from './services/handlers/InteractionHandler.js';
|
|
24
24
|
import { CommandManager } from './services/managers/CommandManager.js';
|
|
25
25
|
import { ErrorType } from './definitions/ErrorType.js';
|
|
26
|
-
import { InviteUrlGenerator } from '
|
|
26
|
+
import { InviteUrlGenerator } from './services/utilities/InviteUrlGenerator.js';
|
|
27
27
|
export { Injectable } from './definitions/decorators/Injectable.decorator.js';
|
|
28
28
|
ServiceContainer.addService(TextFormatter, []);
|
|
29
29
|
ServiceContainer.addService(EmojiFallback, [discord.Client.name, TranslationManager.name]);
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
declare type TimestampFormat = 'T' | 't' | 'd' | 'D' | 'f' | 'F' | 'R';
|
|
1
2
|
export declare class TextFormatter {
|
|
2
3
|
static getUser(userId: string): string;
|
|
3
4
|
static getChannel(channelId: string): string;
|
|
@@ -5,9 +6,9 @@ export declare class TextFormatter {
|
|
|
5
6
|
static getEmoji(emojiId: string): string;
|
|
6
7
|
static getEmojiAnimated(emojiId: string): string;
|
|
7
8
|
static getMember(memberId: string): string;
|
|
8
|
-
static getTimestamp(timestamp: number, format:
|
|
9
|
-
static getTimestampFromDate(date: Date, format:
|
|
10
|
-
static getTimestampFromNow(format:
|
|
9
|
+
static getTimestamp(timestamp: number, format: TimestampFormat): string;
|
|
10
|
+
static getTimestampFromDate(date: Date, format: TimestampFormat): string;
|
|
11
|
+
static getTimestampFromNow(format: TimestampFormat): string;
|
|
11
12
|
static getCodeBlock(code: string, language: string): string;
|
|
12
13
|
static getInlineCodeBlock(code: string): string;
|
|
13
14
|
static getBold(text: string): string;
|
|
@@ -24,3 +25,4 @@ export declare class TextFormatter {
|
|
|
24
25
|
static getProgressbar(progress: number, max: number, length: number, filled: string, empty: string): string;
|
|
25
26
|
static getProgressbarWithText(progress: number, max: number, length: number, filled: string, empty: string, text: string): string;
|
|
26
27
|
}
|
|
28
|
+
export {};
|