@spatulox/simplediscordbot 1.0.27 → 1.0.29
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/bot/BotMessage.d.ts +1 -19
- package/dist/bot/BotMessage.js +1 -0
- package/package.json +1 -1
package/dist/bot/BotMessage.d.ts
CHANGED
|
@@ -1,20 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
import { SendableComponent } from "../manager/builder/SendableComponentBuilder";
|
|
3
|
-
export declare class BotMessage {
|
|
4
|
-
/**
|
|
5
|
-
* Send message to any text-based channel
|
|
6
|
-
*/
|
|
7
|
-
static send(channel: TextChannel | DMChannel | ThreadChannel | string, content?: string | null, component?: SendableComponent): Promise<Message | null>;
|
|
8
|
-
static send(channel: TextChannel | DMChannel | ThreadChannel | string, content: SendableComponent): Promise<Message | null>;
|
|
9
|
-
static send(channel: TextChannel | DMChannel | ThreadChannel | string, content: MessageCreateOptions): Promise<Message | null>;
|
|
10
|
-
static sendDM(user: User | GuildMember | string, content?: string, component?: SendableComponent): Promise<Message | null>;
|
|
11
|
-
/**
|
|
12
|
-
* Quick success message
|
|
13
|
-
*/
|
|
14
|
-
static success(channel: TextChannel | DMChannel | ThreadChannel | User | GuildMember, message: string): Promise<Message | null>;
|
|
15
|
-
/**
|
|
16
|
-
* Quick error message
|
|
17
|
-
*/
|
|
18
|
-
static error(channel: TextChannel | DMChannel | ThreadChannel | User | GuildMember, message: string): Promise<Message | null>;
|
|
19
|
-
}
|
|
1
|
+
export {};
|
|
20
2
|
//# sourceMappingURL=BotMessage.d.ts.map
|
package/dist/bot/BotMessage.js
CHANGED
|
@@ -6,6 +6,7 @@ const Log_1 = require("../utils/Log");
|
|
|
6
6
|
const Bot_1 = require("./Bot");
|
|
7
7
|
const EmbedManager_1 = require("../manager/messages/EmbedManager");
|
|
8
8
|
const SendableComponentBuilder_1 = require("../manager/builder/SendableComponentBuilder");
|
|
9
|
+
/** @internal */
|
|
9
10
|
class BotMessage {
|
|
10
11
|
static async send(channel, content, component) {
|
|
11
12
|
try {
|