/[sudobot]/trunk/commands/kick.js
ViewVC logotype

Diff of /trunk/commands/kick.js

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 24 by rakin, Mon Jul 29 17:28:11 2024 UTC revision 25 by rakin, Mon Jul 29 17:28:16 2024 UTC
# Line 1  Line 1 
1    const History = require("../src/History");
2  const MessageEmbed = require("../src/MessageEmbed");  const MessageEmbed = require("../src/MessageEmbed");
3    
4  module.exports = {  module.exports = {
# Line 58  module.exports = { Line 59  module.exports = {
59                  return;                  return;
60              }              }
61    
62              await user.kick(reason);              
63                await History.create(user.id, msg.guild, 'kick', msg.author.id, async (data2) => {
64                    await user.kick(reason);
65                });
66          }          }
67          catch(e) {          catch(e) {
68              console.log(e);              console.log(e);

Legend:
Removed from v.24  
changed lines
  Added in v.25

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26