DM command bug fixes

This commit is contained in:
night0721 2021-06-12 20:16:07 +08:00
parent 0992ea3903
commit a0f9dff2bf

View file

@ -11,7 +11,7 @@ module.exports = {
* @param {String[]} args
*/
run: async (client, message, args) => {
const user = client.users.cache.get(id);
const user = client.users.cache.get(args[0]);
if (!user) return message.inlineReply("User?");
if (!args.slice(1).join(" ")) return message.inlineReply("Message?");
try {