use the util for getting channels
All checks were successful
Deploy to Dokku / docker (ubuntu-latest) (push) Successful in 39s

This commit is contained in:
Lee
2024-07-04 03:52:33 +01:00
parent fa1f18e11b
commit 040c644ab1
8 changed files with 15 additions and 9 deletions

View File

@ -41,7 +41,7 @@ public class LogProfile extends Serializable {
return null;
}
// Ensure the channel exists
if (DiscordService.JDA.getTextChannelById(textChannel.getId()) == null) {
if (ChannelUtils.getTextChannel(textChannel.getId()) == null) {
this.logChannels.remove(logType);
return null;
}

View File

@ -30,7 +30,7 @@ public class ListSubCommand extends BatSubCommand {
Set the log channel for:
- A specific event, use `/logs set <event> <channel>`
- A specific category by using `/logs set <category> <channel>`
- All log types by using `/logs set all <channel>`
- All log events by using `/logs set all <channel>`
To remove a log channel, it's the same as setting it,
but with `/logs remove` instead of `/logs set`""", false);
description.emptyLine();