expired uav message

This commit is contained in:
SowinskiBraeden committed 2023-04-16 13:00:28 -07:00
1 parent 040778e2b6
commit 953c8213b7
2 files changed
+7 -1

No files matched your search

+6
View File
@@ -78,6 +78,12 @@ module.exports = {
uavs.splice(i, 1);
update = true;
let expired = new EmbedBuilder().setColor(client.config.Colors.Red).setDescription("**Low Battery**\nUAV has run out of battery and is no longer active.");
client.users.fetch(uav.owner, false).then((user) => {
user.send({ embeds: [expired] });
});
}
if (update) {