nyx/commands/Utilities/servericon.js

17 lines
520 B
JavaScript
Raw Normal View History

2021-06-12 12:53:51 +02:00
const { Client, Message, MessageEmbed } = require("discord.js");
module.exports = {
name: "servericon",
description: "View the icon of the server",
category: "Utilities",
run: async (client, message, args) => {
const Embed = new MessageEmbed()
.setTitle(`Icon of ${message.guild.name}`)
.setURL(client.web)
.setTimestamp()
2021-07-13 05:17:39 +02:00
.setFooter(`Requested by ${message.author.tag}`)
2021-06-12 12:53:51 +02:00
.setImage(message.guild.iconURL({ dynamic: true, size: 2048 }));
message.inlineReply(Embed);
},
};