Exemplo n.º 1
0
        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)."
            );
        }
Exemplo n.º 2
0
        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)."
                   ));
        }
Exemplo n.º 3
0
    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
               ));
    }