This should change the status and activity but for some reason, it only changes the status not the activity.
const args = message.content.slice(prefix.length).trim().split(/ +/);
const command = args.shift().toLowerCase();
if (command == "status") {
if (!args[2]) {
return message.channel.send({ content: "Usuage: {prefix}{command} {online/idle etc} {type} {status}" });
}
client.user.setPresence({
status: `${args[0]}`,
activities: [{ type: `${args[1]}`, name: `${args.slice(2).join(" ")}` }],
});
}