/[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 203 by rakin, Mon Jul 29 17:29:00 2024 UTC revision 336 by rakin, Mon Jul 29 17:29:36 2024 UTC
# Line 57  export async function mute(client: Disco Line 57  export async function mute(client: Disco
57                  user_id: user.id,                  user_id: user.id,
58                  roles: roles.map(role => role.id),                  roles: roles.map(role => role.id),
59                  guild_id: msg.guild!.id,                  guild_id: msg.guild!.id,
60                    createdAt: new Date()
61              });              });
62          }          }
63    
# Line 72  export async function mute(client: Disco Line 73  export async function mute(client: Disco
73              reason,              reason,
74              meta: {              meta: {
75                  time: timeInterval ? ms(timeInterval) : undefined                  time: timeInterval ? ms(timeInterval) : undefined
76              }              },
77                createdAt: new Date()
78          });          });
79                    
80          await client.logger.logMute(user, reason === undefined || reason.trim() === '' ? "*No reason provided*" : reason, timeInterval, msg.member!.user as User, hard);          await client.logger.logMute(user, reason === undefined || reason.trim() === '' ? "*No reason provided*" : reason, timeInterval, msg.member!.user as User, hard);

Legend:
Removed from v.203  
changed lines
  Added in v.336

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26