diff options
author | Vendicated <vendicated@riseup.net> | 2022-11-09 21:15:52 +0100 |
---|---|---|
committer | Vendicated <vendicated@riseup.net> | 2022-11-09 21:15:52 +0100 |
commit | 6f38c4b7fe56f730ec5586d7f2006b9580b28e70 (patch) | |
tree | f3765282a8d00fa49868402d023481d8ad96273b /src/plugins/petpet.ts | |
parent | c1d2f0078fe1ff154243e8483b4267d647849d13 (diff) | |
download | Vencord-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.ts | 7 |
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; } |