public async Task RedirectTipsAsync([Remainder] string Remainder = "") { // Delete original message try { await Context.Message.DeleteAsync(); } catch { } // Check that user has registered an address if (!TrtlBotSharp.CheckUserExists(Context.Message.Author.Id)) { await Context.Message.Author.SendMessageAsync(string.Format("You must register a wallet before you can recieve tips! Use {0}help if you need any help.", TrtlBotSharp.botPrefix)); } // User is registered else { // Check if user is redirecting tips bool Redirect = TrtlBotSharp.GetRedirect(Context.Message.Author.Id); // Set new value if (Redirect) { Redirect = false; } else { Redirect = true; } // Set redirect preference TrtlBotSharp.SetRedirect(Context.Message.Author.Id, Redirect); // Send reply if (Redirect) { await Context.Message.Author.SendMessageAsync("**Tip redirect preference changed**\nTips you receive will now go to your tip jar"); } else { await Context.Message.Author.SendMessageAsync("**Tip redirect preference changed**\nTips you receive will now go to your registered wallet"); } } }