Search in sources :

Example 1 with UserChangeAvatarEvent

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);
}
Also used : UserChangeAvatarEventImpl(org.javacord.core.event.user.UserChangeAvatarEventImpl) UserChangeAvatarEvent(org.javacord.api.event.user.UserChangeAvatarEvent)

Aggregations

UserChangeAvatarEvent (org.javacord.api.event.user.UserChangeAvatarEvent)1 UserChangeAvatarEventImpl (org.javacord.core.event.user.UserChangeAvatarEventImpl)1