/[sudobot]/trunk/src/automod/Logger.ts
ViewVC logotype

Diff of /trunk/src/automod/Logger.ts

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

revision 61 by rakin, Mon Jul 29 17:28:26 2024 UTC revision 65 by rakin, Mon Jul 29 17:28:27 2024 UTC
# Line 19  class Logger { Line 19  class Logger {
19          }          }
20      }      }
21    
22      channelJoinLeft(callback: (channel: TextChannel) => any, msg: Message | GuildBan) {      channelJoinLeft(callback: (channel: TextChannel) => any, msg: any) {
23          let channelID = this.client.config.props[msg.guild!.id].logging_channel_join_leave;          let channelID = this.client.config.props[msg.guild!.id].logging_channel_join_leave;
24          let channel = msg.guild!.channels.cache.find(c => c.id === channelID) as TextChannel;          let channel = msg.guild!.channels.cache.find((c: any) => c.id === channelID) as TextChannel;
25    
26          if (channel) {          if (channel) {
27              return callback(channel);              return callback(channel);

Legend:
Removed from v.61  
changed lines
  Added in v.65

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26