use of org.javacord.core.event.user.UserChangeNameEventImpl in project Javacord by BtoBastian.
the class GuildMemberUpdateHandler method dispatchUserChangeNameEvent.
private void dispatchUserChangeNameEvent(User user, String newName, String oldName) {
UserChangeNameEvent event = new UserChangeNameEventImpl(user, newName, oldName);
api.getEventDispatcher().dispatchUserChangeNameEvent(api, user.getMutualServers(), Collections.singleton(user), event);
}
Aggregations