discord.js-prompts
Advanced tools
Comparing version 2.0.1 to 2.0.2
@@ -18,4 +18,4 @@ import { ChannelInterface } from "prompt-anything"; | ||
sendMenuVisual(visual: MenuVisual): Promise<Message>; | ||
sendMessageVisual(visual: MessageVisual): Promise<Message>; | ||
send(visual: DiscordVisual): Promise<Message>; | ||
sendMessageVisual(visual: MessageVisual): Promise<Message | Message[]>; | ||
send(visual: DiscordVisual): Promise<Message | Message[]>; | ||
} |
@@ -57,3 +57,8 @@ "use strict"; | ||
const sent = yield this.sendMessageVisual(visual); | ||
this.storeMessage(sent); | ||
if (Array.isArray(sent)) { | ||
sent.forEach(m => this.storeMessage(m)); | ||
} | ||
else { | ||
this.storeMessage(sent); | ||
} | ||
return sent; | ||
@@ -60,0 +65,0 @@ } |
{ | ||
"name": "discord.js-prompts", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"description": "Create prompts in Discord, just like you would in console!", | ||
@@ -26,3 +26,3 @@ "main": "build/index.js", | ||
"discord.js": "^12.2.0", | ||
"prompt-anything": "^2.0.1" | ||
"prompt-anything": "^3.0.0" | ||
}, | ||
@@ -29,0 +29,0 @@ "devDependencies": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
110147
2551
+ Addedprompt-anything@3.0.0(transitive)
- Removedprompt-anything@2.0.1(transitive)
Updatedprompt-anything@^3.0.0