stoatx 0.3.0 → 0.4.0
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.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -60,7 +60,7 @@ interface CommandContext {
|
|
|
60
60
|
/** The command name used (could be an alias) */
|
|
61
61
|
commandName: string;
|
|
62
62
|
/** Reply to the message */
|
|
63
|
-
reply: (content: string) => Promise<
|
|
63
|
+
reply: (content: string) => Promise<Message>;
|
|
64
64
|
/** The original message object (platform-specific) */
|
|
65
65
|
message: Message;
|
|
66
66
|
}
|
|
@@ -456,7 +456,7 @@ declare class StoatxHandler {
|
|
|
456
456
|
authorId: string;
|
|
457
457
|
channelId: string;
|
|
458
458
|
serverId?: string;
|
|
459
|
-
reply: (content: string) => Promise<
|
|
459
|
+
reply: (content: string) => Promise<Message>;
|
|
460
460
|
}): Promise<CommandContext | null>;
|
|
461
461
|
/**
|
|
462
462
|
* Handle a message object using the configured message adapter
|
|
@@ -490,7 +490,7 @@ declare class StoatxHandler {
|
|
|
490
490
|
authorId: string;
|
|
491
491
|
channelId: string;
|
|
492
492
|
serverId?: string;
|
|
493
|
-
reply: (content: string) => Promise<
|
|
493
|
+
reply: (content: string) => Promise<Message>;
|
|
494
494
|
}): Promise<boolean>;
|
|
495
495
|
/**
|
|
496
496
|
* Execute a command with the given context
|
package/dist/index.d.ts
CHANGED
|
@@ -60,7 +60,7 @@ interface CommandContext {
|
|
|
60
60
|
/** The command name used (could be an alias) */
|
|
61
61
|
commandName: string;
|
|
62
62
|
/** Reply to the message */
|
|
63
|
-
reply: (content: string) => Promise<
|
|
63
|
+
reply: (content: string) => Promise<Message>;
|
|
64
64
|
/** The original message object (platform-specific) */
|
|
65
65
|
message: Message;
|
|
66
66
|
}
|
|
@@ -456,7 +456,7 @@ declare class StoatxHandler {
|
|
|
456
456
|
authorId: string;
|
|
457
457
|
channelId: string;
|
|
458
458
|
serverId?: string;
|
|
459
|
-
reply: (content: string) => Promise<
|
|
459
|
+
reply: (content: string) => Promise<Message>;
|
|
460
460
|
}): Promise<CommandContext | null>;
|
|
461
461
|
/**
|
|
462
462
|
* Handle a message object using the configured message adapter
|
|
@@ -490,7 +490,7 @@ declare class StoatxHandler {
|
|
|
490
490
|
authorId: string;
|
|
491
491
|
channelId: string;
|
|
492
492
|
serverId?: string;
|
|
493
|
-
reply: (content: string) => Promise<
|
|
493
|
+
reply: (content: string) => Promise<Message>;
|
|
494
494
|
}): Promise<boolean>;
|
|
495
495
|
/**
|
|
496
496
|
* Execute a command with the given context
|
package/dist/index.js
CHANGED
|
@@ -599,7 +599,7 @@ var StoatxHandler = class {
|
|
|
599
599
|
const channelId = message.channel.id;
|
|
600
600
|
const serverId = message.server?.id;
|
|
601
601
|
const reply = async (content) => {
|
|
602
|
-
await message.channel.sendMessage(content);
|
|
602
|
+
return await message.channel.sendMessage(content);
|
|
603
603
|
};
|
|
604
604
|
return this.handleMessage(rawContent, message, {
|
|
605
605
|
authorId,
|
package/dist/index.mjs
CHANGED
|
@@ -551,7 +551,7 @@ var StoatxHandler = class {
|
|
|
551
551
|
const channelId = message.channel.id;
|
|
552
552
|
const serverId = message.server?.id;
|
|
553
553
|
const reply = async (content) => {
|
|
554
|
-
await message.channel.sendMessage(content);
|
|
554
|
+
return await message.channel.sendMessage(content);
|
|
555
555
|
};
|
|
556
556
|
return this.handleMessage(rawContent, message, {
|
|
557
557
|
authorId,
|