added anonymous message handling to modmail

This commit is contained in:
Sheldan
2020-05-08 00:58:05 +02:00
parent c03788a065
commit ea6fe240f4
7 changed files with 38 additions and 18 deletions

View File

@@ -149,6 +149,16 @@ public class BotServiceBean implements BotService {
return instance.getGuildById(serverId);
}
@Override
public Member getBotInGuild(AServer server) {
Optional<Guild> guildOptional = getGuildById(server.getId());
if(guildOptional.isPresent()) {
Guild guild = guildOptional.get();
return guild.getMemberById(instance.getSelfUser().getId());
}
return null;
}
@Override
public void shutdown() {