title: Moderation Log Message Discord JS
body: <p>Hello StackOverflow community, this is my first question in need help with for Discord, could someone please edit this code to made this command send a log to <em>#logs</em> channel with the following info
  1) Title - Moderation Log
  2) User the moderation action was performed on
  3) What moderation action was performed (in this case ban)
  4) Moderator
  5) Footer - Proton Servers Bot©2020</p>
  
  <pre><code>
  const { client, config, functions } = require('../index.js');
  
  module.exports.run = async (message, u) =&gt; {
    if (!message.member.hasPermission('BAN_MEMBERS')) return message.channel.send(functions.errorEmbed('You are not permitted to do this.'));
  
    if (!u) return message.channel.send(functions.usageEmbed(config.prefix + 'ban &lt;user/id&gt;'));
  
    const userID = u.match(/[0-9]+/) ? u.match(/([0-9]+)/)[0] : undefined;
    const user = message.guild.members.get(userID);
  
    if (!user) return message.channel.send(functions.errorEmbed('**' + u + '** is not a valid user.'));
  
    try {
      await user.ban();
      return message.channel.send(functions.successEmbed('Banned ' + user + ' successfully.'));
    } catch {
      return message.channel.send(functions.errorEmbed('Could not ban ' + user + '. Is their role higher than mine?'));
    }
  }
  
  module.exports.description = 'Ban a user.';```
  </code></pre>