From 3305fa2065bc968c77150f747289328cf68b9757 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Mon, 6 Jul 2020 21:55:43 -0400 Subject: [PATCH] Accept attachments as portal-send args --- commands/other/portal-send.js | 3 ++- package.json | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/commands/other/portal-send.js b/commands/other/portal-send.js index 97c61197..f270496b 100644 --- a/commands/other/portal-send.js +++ b/commands/other/portal-send.js @@ -21,7 +21,8 @@ module.exports = class PortalSendCommand extends Command { prompt: 'What message would you like to send?', type: 'string', max: 1000, - parse: message => stripInvites(message) + parse: message => stripInvites(message), + emptyChecker: (val, msg) => !msg.attachments.size && !val } ] }); diff --git a/package.json b/package.json index dc473cce..0dfbb856 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xiao", - "version": "119.10.1", + "version": "119.10.2", "description": "Your personal server companion.", "main": "Xiao.js", "scripts": {