Exemple #1
0
        public async Task <ApiResponse <Invite> > Handle(InviteMemberCommand request, CancellationToken cancellationToken)
        {
            var invite = new Invite(request.MemberId, request.GuildId);

            return(new ApiResponse <Invite>(await _inviteRepository.InsertAsync(invite, cancellationToken)));
        }