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