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

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

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

revision 341 by rakin, Mon Jul 29 17:29:38 2024 UTC revision 342 by rakin, Mon Jul 29 17:29:39 2024 UTC
# Line 35  export async function mute(client: Disco Line 35  export async function mute(client: Disco
35          }          }
36    
37          if (dateTime && timeInterval) {          if (dateTime && timeInterval) {
38              await client.db.get("INSERT INTO unmutes(user_id, guild_id, time) VALUES(?, ?, ?)", [user.id, msg.guild!.id, new Date(dateTime).toISOString()], async (err: any) => {              await setTimeoutv2('unmute-job', timeInterval, msg.guild!.id, `unmute ${user.id}`, msg.guild!.id, user.id);
                 if (err)  
                     console.log(err);  
                   
                     console.log('A timeout has been set.');  
   
                     await setTimeoutv2('unmute-job', timeInterval, msg.guild!.id, `unmute ${user.id}`, msg.guild!.id, user.id);  
             });  
39          }          }
40                    
41          if (hard) {          if (hard) {

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26