bug fixes

This commit is contained in:
Emily 2021-04-03 15:13:08 +11:00
parent 5d9bbb4431
commit 67c9fdfd3a
3 changed files with 9 additions and 2 deletions

View file

@ -12,11 +12,15 @@ exports.run = async (client, message, args) => {
]
if (!args[0]) {
return message.channel.send(client.userError(exports, 'Missing argument, the `name1` argument is required!'))
return message.channel.send(
`<:error:466995152976871434> No message provided. Usage: \`${client.commands.get(`ship`).help.usage}\``
);
}
if (!args[1]) {
return message.channel.send(client.userError(exports, 'Missing argument, the `name2` argument is required!'))
return message.channel.send(
`<:error:466995152976871434> No message provided. Usage: \`${client.commands.get(`ship`).help.usage}\``
);
}
const firstName = args[0]

View file

@ -3,6 +3,8 @@ const Discord = require("discord.js");
module.exports = (client, message) => {
if (message.author.bot) return;
if(!message.guild) return;
const settings = (message.settings = client.getSettings(message.guild.id));
if (settings.chatlogsChannel !== "off") {

View file

@ -13,6 +13,7 @@ module.exports = (client, omsg, nmsg) => {
);
if (channel) {
if (!nmsg.member) return;
let embed = new Discord.MessageEmbed();
embed.setColor("#fff937");
embed.setAuthor("Message Edited!", nmsg.member.user.avatarURL({dynamic: true}));