public void raid_kick(Context ctx, uint id, [RegexParameter(@"[\S\s]+")] string name) { //Get a handle to the raid var handle = RaidManager.GetRaidFromID((int)id); //Make sure it exists Precondition.Assert(handle.HasValue, $"No raid with that id ({id})."); //Find any raiders that match the name var players = RaidManager.FindRaiders(handle.Value, name); //Check that we got only one Precondition.Assert(players.Count > 0, "No one with that name."); Precondition.Assert(players.Count == 1, $"More than one matches that name."); //Pass on to the implementation this.raid_kick_impl(ctx, handle.Value, players.First()); }