use of org.javacord.api.event.user.UserChangeDiscriminatorEvent in project Javacord by BtoBastian.
the class GuildMemberUpdateHandler method dispatchUserChangeDiscriminatorEvent.
private void dispatchUserChangeDiscriminatorEvent(User user, String newDiscriminator, String oldDiscriminator) {
UserChangeDiscriminatorEvent event = new UserChangeDiscriminatorEventImpl(user, newDiscriminator, oldDiscriminator);
api.getEventDispatcher().dispatchUserChangeDiscriminatorEvent(api, user.getMutualServers(), Collections.singleton(user), event);
}
Aggregations