use of org.javacord.core.event.user.UserChangeDiscriminatorEventImpl 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