BenJ3D/ft_transcendence-42

Channel Event

Closed this issue · 1 comments

Blu-ea commented

Make it so that when :

  • you gain/loose admin power
  • you get kicked
  • you get muted
  • you get baned
  • you got an invite to a channel

There is a event send to the concerne user regarding what happend and maybe be display on the page


For now, when you get you get kicked or banned you just receive

class LeaveEventDTOPipe {
	@IsNumber()
	@IsNotEmpty()
	channelID: number;

	@IsNotEmpty()
	user: UserEntity;
}
Blu-ea commented

All event ar now and futur one will be display in back-end/src/dto/event.dto.ts and will be send on a ws with the event notifyEvent with a value 'type' to differentien on and an other