Use the NickChangeInfo interface for nickname change events
The
NickChangeInfo interface (defined in types/events) provides details about a user's nickname change event. It contains the user object and both the previous and updated nicknames.interface NickChangeInfo {
user: User;
oldNickname: string;
newNickname: string;
}