nyx/commands/Owner/premium.js
night0721 bc346138dd Bot
2021-06-12 18:53:51 +08:00

22 lines
648 B
JavaScript

const { Client, Message, MessageEmbed } = require("discord.js");
module.exports = {
name: "setpremium",
category: "Owner",
usage: "(User) (Toggle) (Tier)",
description: "Set someone into Premium with tiers",
Owner: true,
/**
* @param {Client} client
* @param {Message} message
* @param {String[]} args
*/
run: async (client, message, args) => {
const member =
message.mentions.members.first() ||
message.guild.members.cache.get(args[0]);
client.data.Premium(member.id, "true", args[1]);
message.inlineReply(
`**${member.user.username}**'s premium status:\nTier **${args[1]}**`
);
},
};