mirror of
https://github.com/Sheldan/abstracto.git
synced 2026-01-25 20:04:01 +00:00
added user facing message in case the initial modmail creation fails
This commit is contained in:
@@ -191,8 +191,12 @@ public class ChannelServiceBean implements ChannelService {
|
||||
if(categoryById != null) {
|
||||
return categoryById.createTextChannel(name).submit();
|
||||
}
|
||||
return null;
|
||||
CompletableFuture<TextChannel> objectCompletableFuture = new CompletableFuture<>();
|
||||
objectCompletableFuture.completeExceptionally(new AbstractoRunTimeException("Mod mail category is not setup."));
|
||||
return objectCompletableFuture;
|
||||
}
|
||||
return null;
|
||||
CompletableFuture<TextChannel> objectCompletableFuture = new CompletableFuture<>();
|
||||
objectCompletableFuture.completeExceptionally(new AbstractoRunTimeException("Guild to create mod mail channel for was not found."));
|
||||
return objectCompletableFuture;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user