From 57a3a4e3a8596319c4ff37c73ffc8630e10e4500 Mon Sep 17 00:00:00 2001 From: Cynthia Foxwell Date: Sat, 19 Jul 2025 00:02:36 -0600 Subject: [PATCH] cache: args check --- src/modules/utility/cache.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/modules/utility/cache.js b/src/modules/utility/cache.js index 4d577e5..0cccc22 100644 --- a/src/modules/utility/cache.js +++ b/src/modules/utility/cache.js @@ -8,8 +8,9 @@ const {Icons} = require("#util/constants.js"); const cache = new Command("cache"); cache.category = "utility"; cache.helpText = "Cache a user to your client from their ID"; -cache.usage = ""; +cache.usage = "[user id]"; cache.callback = async function (msg, id) { + if (!id || id == "") return "Arguments required"; if (id == msg.author?.id ?? msg.user?.id) return "Can't cache yourself."; try {