impl member join and leave logs
All checks were successful
Deploy to Dokku / docker (ubuntu-latest) (push) Successful in 41s

This commit is contained in:
Lee
2024-07-02 18:31:18 +01:00
parent 8ce3a5d25c
commit e03aef0ad5
8 changed files with 75 additions and 19 deletions

View File

@ -37,6 +37,9 @@ public class LogProfile extends Serializable {
*/
public TextChannel getLogChannel(LogType logType) {
TextChannel textChannel = this.logChannels.get(logType);
if (textChannel == null) {
return null;
}
// Ensure the channel exists
if (DiscordService.JDA.getTextChannelById(textChannel.getId()) == null) {
this.logChannels.remove(logType);