mirror of
https://github.com/Sheldan/abstracto.git
synced 2026-03-27 14:23:56 +00:00
fixed command and feature mapping
added a bunch of java doc to moderation interface added check in case the text channel on the server was deleted while the mod mail thread was still open This now returns an error to the user side and prompts to message the bot again in order to create a new mod mail thread
This commit is contained in:
@@ -249,6 +249,11 @@ public class ModMailThreadServiceBean implements ModMailThreadService {
|
||||
if(textChannelFromServer.isPresent()) {
|
||||
TextChannel textChannel = textChannelFromServer.get();
|
||||
self.sendUserReply(textChannel, modMailThread, message);
|
||||
} else {
|
||||
// in this case there was no text channel on the server associated with the mod mail thread
|
||||
// close the existing one, so the user can start a new one
|
||||
message.getChannel().sendMessage(templateService.renderTemplate("modmail_failed_to_forward_message", new Object())).queue();
|
||||
self.closeModMailThreadInDb(modMailThread.getId());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user