SteamWar/BungeeCore
Archiviert
13
2

discord-bot #230

Manuell gemergt
YoyoNow hat 38 Commits von discord-bot nach master 2021-07-28 23:59:27 +02:00 zusammengeführt
Nur Änderungen aus Commit 293ac47b58 werden angezeigt - Alle Commits anzeigen

Datei anzeigen

@ -35,15 +35,11 @@ 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);
Member member = guild.retrieveMemberById(steamwarUser.getDiscordId()).complete();
if (member == null) {
return;
}