using ODMO.Commons.Interfaces; using MediatR; namespace ODMO.Application.Separar.Commands.Update { public class UpdateGuildAuthorityCommandHandler : IRequestHandler { private readonly IServerCommandsRepository _repository; public UpdateGuildAuthorityCommandHandler(IServerCommandsRepository repository) { _repository = repository; } public async Task Handle(UpdateGuildAuthorityCommand request, CancellationToken cancellationToken) { await _repository.UpdateGuildAuthorityAsync(request.Authority); return Unit.Value; } } }