/[sudobot]/trunk/src/commands/moderation/UnbanCommand.ts
ViewVC logotype

Diff of /trunk/src/commands/moderation/UnbanCommand.ts

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

revision 340 by rakin, Mon Jul 29 17:29:36 2024 UTC revision 341 by rakin, Mon Jul 29 17:29:38 2024 UTC
# Line 5  import CommandOptions from '../../types/ Line 5  import CommandOptions from '../../types/
5  import InteractionOptions from '../../types/InteractionOptions';  import InteractionOptions from '../../types/InteractionOptions';
6  import MessageEmbed from '../../client/MessageEmbed';  import MessageEmbed from '../../client/MessageEmbed';
7  import getUser from '../../utils/getUser';  import getUser from '../../utils/getUser';
 import History from '../../automod/History';  
 import getMember from '../../utils/getMember';  
 import ms from 'ms';  
8  import Punishment from '../../models/Punishment';  import Punishment from '../../models/Punishment';
9  import PunishmentType from '../../types/PunishmentType';  import PunishmentType from '../../types/PunishmentType';
10    
# Line 85  export default class UnbanCommand extend Line 82  export default class UnbanCommand extend
82                  mod_tag: (msg.member!.user as User).tag,                  mod_tag: (msg.member!.user as User).tag,
83                  createdAt: new Date()                  createdAt: new Date()
84              });              });
   
             await History.create(user.id, msg.guild!, 'unban', (msg.member!.user as User).id, null);  
85          }          }
86          catch (e) {          catch (e) {
87              console.log(e);                          console.log(e);            

Legend:
Removed from v.340  
changed lines
  Added in v.341

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26