private async Task OnReactionAdded(Cacheable <IUserMessage, ulong> message, ISocketMessageChannel channel, SocketReaction reaction) { if (message.Id == ulong.Parse(_config[Constants.PREFERENCES_MESSAGE]) && reaction.Emote.Name.Equals("👀")) { var user = reaction.User.Value; await _actions.SetSolvedChannelsViewPermissionAsync(user, false); await _actions.SendDirectMessageAsync(user, "Your solved puzzles are now being shown."); } }
public async Task UpdateHidden() { var users = Context.Guild.Users; foreach (var user in users) { if (user.IsBot) { continue; } await _actions.SetSolvedChannelsViewPermissionAsync(user, true); } await ReplyAsync("Hidden already solved puzzles for all users."); }