cache: args check

This commit is contained in:
Cynthia Foxwell 2025-07-19 00:02:36 -06:00
parent 4ef3e9bc17
commit 57a3a4e3a8
Signed by: Cynosphere
SSH key fingerprint: SHA256:H3SM8ufP/uxqLwKSH7xY89TDnbR9uOHzjLoBr0tlajk

View file

@ -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 = "<user id>";
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 {