use of org.javacord.api.event.user.UserChangeNameEvent 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