public async Task RevokeConsentAsync() { await _privacy.RevokeUserConsentAsync(this.Context.User); await _feedback.SendConfirmationAsync ( this.Context, "Consent revoked - no more information will be stored about you from now on. If you would like to " + "delete your existing data, or get a copy of it, please contact the privacy contact individual (use " + "!privacy contact to get their contact information)." ); }
public async Task <RuntimeResult> RevokeConsentAsync() { var revokeResult = await _privacy.RevokeUserConsentAsync(this.Context.User); if (!revokeResult.IsSuccess) { return(revokeResult.ToRuntimeResult()); } return(RuntimeCommandResult.FromSuccess ( "Consent revoked - no more information will be stored about you from now on. If you would like to " + "delete your existing data, or get a copy of it, please contact the privacy contact individual (use " + "!privacy contact to get their contact information)." )); }
public async Task <Result <FeedbackMessage> > RevokeConsentAsync() { var revokeResult = await _privacy.RevokeUserConsentAsync(_context.User.ID); if (!revokeResult.IsSuccess) { return(Result <FeedbackMessage> .FromError(revokeResult)); } return(new FeedbackMessage ( "Consent revoked - no more information will be stored about you from now on. If you would like to " + "delete your existing data, or get a copy of it, please contact the privacy contact individual (use " + "!privacy contact to get their contact information).", _feedback.Theme.Secondary )); }