discord_bot/commands/image/Jail.js

23 lines
651 B
JavaScript
Raw Permalink Normal View History

const Color = "RANDOM";
const Discord = require("discord.js");
module.exports = {
name: "jail",
aliases: ["j"],
category: "Image",
description: "Zeigt ein Bild des Gefängnisses",
usage: "jail <user>",
run: async (client, message, args) => {
const Member = message.mentions.members.first() || message.guild.members.cache.get(args[0]) || message.member;
const Embed = new Discord.MessageEmbed()
.setColor(Color)
.setTitle("Jail")
.setImage(encodeURI
(`https://api.devs-hub.xyz/jail?image=${Member.user.displayAvatarURL({ format: "png" })}`))
.setTimestamp();
return message.channel.send(Embed);
}
};