Signed-off-by: Lixfel <git-5w3l@lixfel.de>
Dieser Commit ist enthalten in:
Ursprung
5554b28894
Commit
276587b07f
@ -152,7 +152,7 @@ public class DiscordTicketHandler extends ListenerAdapter {
|
|||||||
ChatterGroup receivers = Chatter.serverteam();
|
ChatterGroup receivers = Chatter.serverteam();
|
||||||
try {
|
try {
|
||||||
SteamwarUser user = SteamwarUser.get(Long.parseLong(channel.getTopic()));
|
SteamwarUser user = SteamwarUser.get(Long.parseLong(channel.getTopic()));
|
||||||
if(!user.perms().contains(UserPerm.TEAM))
|
if(user != null && !user.perms().contains(UserPerm.TEAM))
|
||||||
receivers = new ChatterGroup(receivers, Chatter.of(user));
|
receivers = new ChatterGroup(receivers, Chatter.of(user));
|
||||||
} catch(NumberFormatException e) {
|
} catch(NumberFormatException e) {
|
||||||
//ignored
|
//ignored
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren