use of org.javacord.api.event.user.UserChangeAvatarEvent in project Javacord by BtoBastian.
the class GuildMemberUpdateHandler method dispatchUserChangeAvatarEvent.
private void dispatchUserChangeAvatarEvent(User user, String newAvatarHash, String oldAvatarHash) {
UserChangeAvatarEvent event = new UserChangeAvatarEventImpl(user, newAvatarHash, oldAvatarHash);
api.getEventDispatcher().dispatchUserChangeAvatarEvent(api, user.getMutualServers(), Collections.singleton(user), event);
}
Aggregations