Skip to content

Instantly share code, notes, and snippets.

@nathan-dev27
Last active August 7, 2020 12:41
Show Gist options
  • Select an option

  • Save nathan-dev27/2281256ec26f9537fc3297c0032166e9 to your computer and use it in GitHub Desktop.

Select an option

Save nathan-dev27/2281256ec26f9537fc3297c0032166e9 to your computer and use it in GitHub Desktop.
exports.run = async (client, message, args) => {
if(!message.member.roles.cache.some(role =>["Ranking Permissions"].includes(role.name))){
return message.channel.send({embed: {
color: 16733013,
description: "You need the `Ranking Permissions` role to run this command.",
author: {
name: message.author.tag,
icon_url: message.author.displayAvatarURL()
}
}
})
}
let channel = await client.channels.cache.get("710345927122223185")
channel.send({
embed: {
color: `RANDOM`,
description: `A shift is being hosted right now! Head down at the resort and maybe hang out with friends? Work at any of our stations? Make friends or chill!\n`
+ `__**STAFF ARE NEEDED!**__\n`
+ `Ping | <@LegendFrost55>`,
title: `Lux Resort Sessions | Host: <@${message.author.id}`,
image: {
url: `https://cdn.discordapp.com/attachments/720558279935131648/740945158899499028/20200806_225057.jpg`
},
footer: {
text: `Lux Assistant | Made by LegendFrost55 & Edited by GamerOfYouTube5579 (nathann#1048)`
},
timestamp: new Date();
}
})
message.channel.send(`Successfully announced the shift!`)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment