Add DiscordRanks
Dieser Commit ist enthalten in:
Ursprung
398b3e9b5a
Commit
80a5b0e0a4
@ -35,11 +35,15 @@ import java.util.Set;
|
||||
public class DiscordRanks {
|
||||
|
||||
public void update(SteamwarUser steamwarUser) {
|
||||
System.out.println(": " + steamwarUser);
|
||||
if (steamwarUser.getDiscordId() == null) {
|
||||
return;
|
||||
}
|
||||
System.out.println(": verified");
|
||||
Guild guild = SteamwarDiscordBot.instance().getJda().getGuildById(SteamwarDiscordBotConfig.GUILD);
|
||||
System.out.println(": " + guild);
|
||||
Member member = guild.getMemberById(steamwarUser.getDiscordId());
|
||||
System.out.println(": " + member);
|
||||
if (member == null) {
|
||||
return;
|
||||
}
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren