mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-11 07:33:14 -04:00
major cleanup
This commit is contained in:
parent
ddd918470e
commit
a8cf49e31e
60 changed files with 537 additions and 619 deletions
|
@ -5,7 +5,7 @@ const { Permissions } = require("detritus-client/lib/constants");
|
|||
|
||||
module.exports = {
|
||||
name: 'servericon',
|
||||
aliases: ["guildicon","gi","si","groupicon"],
|
||||
aliases: ["guildicon", "gi", "si", "groupicon"],
|
||||
metadata: {
|
||||
description: 'Displays the server icon.',
|
||||
description_short: 'Server icon',
|
||||
|
@ -15,13 +15,11 @@ module.exports = {
|
|||
permissionsClient: [Permissions.EMBED_LINKS, Permissions.SEND_MESSAGES, Permissions.USE_EXTERNAL_EMOJIS, Permissions.READ_MESSAGE_HISTORY],
|
||||
run: async (context) => {
|
||||
context.triggerTyping();
|
||||
if(!context.guild.iconUrl) return editOrReply(context, createEmbed("warning", context, "Server doesn't have an icon."))
|
||||
return editOrReply(context, {
|
||||
embeds: [createEmbed("default", context, {
|
||||
image: {
|
||||
url: context.guild.iconUrl + "?size=4096"
|
||||
}
|
||||
})]
|
||||
})
|
||||
if (!context.guild.iconUrl) return editOrReply(context, createEmbed("warning", context, "Server doesn't have an icon."))
|
||||
return editOrReply(context, createEmbed("default", context, {
|
||||
image: {
|
||||
url: context.guild.iconUrl + "?size=4096"
|
||||
}
|
||||
}))
|
||||
},
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue