cache: args check
This commit is contained in:
parent
4ef3e9bc17
commit
57a3a4e3a8
1 changed files with 2 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue