Search in sources :

Example 1 with UserChangeDiscriminatorEventImpl

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

Aggregations

UserChangeDiscriminatorEvent (org.javacord.api.event.user.UserChangeDiscriminatorEvent)1 UserChangeDiscriminatorEventImpl (org.javacord.core.event.user.UserChangeDiscriminatorEventImpl)1