aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/petpet.ts
diff options
context:
space:
mode:
authorVendicated <vendicated@riseup.net>2022-11-09 21:15:52 +0100
committerVendicated <vendicated@riseup.net>2022-11-09 21:15:52 +0100
commit6f38c4b7fe56f730ec5586d7f2006b9580b28e70 (patch)
treef3765282a8d00fa49868402d023481d8ad96273b /src/plugins/petpet.ts
parentc1d2f0078fe1ff154243e8483b4267d647849d13 (diff)
downloadVencord-6f38c4b7fe56f730ec5586d7f2006b9580b28e70.tar.gz
Vencord-6f38c4b7fe56f730ec5586d7f2006b9580b28e70.tar.bz2
Vencord-6f38c4b7fe56f730ec5586d7f2006b9580b28e70.zip
new plugin(CorruptMp4s): Mp4s with infinite/negative duration
Diffstat (limited to 'src/plugins/petpet.ts')
-rw-r--r--src/plugins/petpet.ts7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/plugins/petpet.ts b/src/plugins/petpet.ts
index 59b4e56..7a794fd 100644
--- a/src/plugins/petpet.ts
+++ b/src/plugins/petpet.ts
@@ -16,7 +16,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
-import { ApplicationCommandInputType, ApplicationCommandOptionType, Argument, CommandContext, findOption } from "../api/Commands";
+import { ApplicationCommandInputType, ApplicationCommandOptionType, Argument, CommandContext, findOption, sendBotMessage } from "../api/Commands";
import { Devs } from "../utils/constants";
import { getGifEncoder } from "../utils/dependencies";
import { lazyWebpack, makeLazy } from "../utils/misc";
@@ -132,8 +132,9 @@ export default definePlugin({
var url = await resolveImage(opts, cmdCtx, noServerPfp);
if (!url) throw "No Image specified!";
} catch (err) {
- // Todo make this send a clyde message once that PR is done
- console.log(err);
+ sendBotMessage(cmdCtx.channel.id, {
+ content: String(err),
+ });
return;
}