mirror of
https://github.com/Sheldan/abstracto.git
synced 2026-03-27 14:23:56 +00:00
added anonymous message handling to modmail
This commit is contained in:
@@ -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() {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user